SHARE
TWEET

Untitled

a guest Jun 20th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GET app_file_dev/_search
  2. {
  3.   "query": {
  4.     "match_all": {}
  5.   }
  6. }
  7.      
  8. {
  9.   "took": 2,
  10.   "timed_out": false,
  11.   "_shards": {
  12.     "total": 5,
  13.     "successful": 5,
  14.     "skipped": 0,
  15.     "failed": 0
  16.   },
  17.   "hits": {
  18.     "total": 4,
  19.     "max_score": 1,
  20.     "hits": [
  21.       {
  22.         "_index": "app_file_dev",
  23.         "_type": "file",
  24.         "_id": "5",
  25.         "_score": 1,
  26.         "_source": {
  27.           "id": 5,
  28.           "tags": [
  29.             "blue"
  30.           ]
  31.         }
  32.       },
  33.       {
  34.         "_index": "app_file_dev",
  35.         "_type": "file",
  36.         "_id": "8",
  37.         "_score": 1,
  38.         "_source": {
  39.           "id": 8,
  40.           "tags": [
  41.             "blue",
  42.             "green"
  43.           ]
  44.         }
  45.       },
  46.       {
  47.         "_index": "app_file_dev",
  48.         "_type": "file",
  49.         "_id": "6",
  50.         "_score": 1,
  51.         "_source": {
  52.           "id": 6,
  53.           "tags": [
  54.             "green"
  55.           ]
  56.         }
  57.       },
  58.       {
  59.         "_index": "app_file_dev",
  60.         "_type": "file",
  61.         "_id": "7",
  62.         "_score": 1,
  63.         "_source": {
  64.           "id": 7,
  65.           "tags": []
  66.         }
  67.       }
  68.     ]
  69.   }
  70. }
  71.      
  72. GET app_file_dev/_search
  73. {
  74.   "query": {
  75.     "match": {
  76.       "tags": {
  77.         "query": "blue"
  78.       }
  79.     }
  80.   }
  81. }
  82.      
  83. GET app_file_dev/_search
  84. {
  85.   "query": {
  86.     "match": {
  87.       "tags": {
  88.         "query": "blue green",
  89.         "operator": "or"
  90.       }
  91.     }
  92.   }
  93. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top