TEXT   13

PUT my-index-000001

Guest on 21st August 2021 09:23:59 AM

  1. PUT my-index-000001
  2. {
  3.   "mappings": {
  4.     "properties": {
  5.       "status_code": {
  6.         "type":       "keyword",
  7.         "null_value": "NULL"
  8.       }
  9.     }
  10.   }
  11. }
  12.  
  13. PUT my-index-000001/_doc/1
  14. {
  15.   "status_code": null
  16. }
  17.  
  18. PUT my-index-000001/_doc/2
  19. {
  20.   "status_code": []
  21. }
  22.  
  23. GET my-index-000001/_search
  24. {
  25.   "query": {
  26.     "term": {
  27.       "status_code": "NULL"
  28.     }
  29.   }
  30. }

Raw Paste


Login or Register to edit or fork this paste. It's free.