Advertisement
Guest User

Untitled

a guest
Apr 18th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. http://127.0.0.1:9200/index/_search -POST
  2.  
  3. {
  4.   "filter": {
  5.     "bool": {
  6.       "should": [
  7.         {
  8.           "bool": {
  9.             "must": [
  10.               {
  11.                 "type": {
  12.                   "value": "type1"
  13.                 }
  14.               },
  15.               {
  16.                 "query": {
  17.                   "query_string": {
  18.                     "default_field": "_all",
  19.                     "query": "this AND that OR thus"
  20.                   }
  21.                 }
  22.               }
  23.             ]
  24.           }
  25.         },
  26.         {
  27.           "bool": {
  28.             "must": [
  29.               {
  30.                 "type": {
  31.                   "value": "type2"
  32.                 }
  33.               },
  34.               {
  35.                 "query": {
  36.                   "query_string": {
  37.                     "default_field": "_all",
  38.                     "query": "this AND that OR thus"
  39.                   }
  40.                 }
  41.               }
  42.             ]
  43.           }
  44.         },
  45.         {
  46.           "bool": {
  47.             "must": [
  48.               {
  49.                 "type": {
  50.                   "value": "type3"
  51.                 }
  52.               },
  53.               {
  54.                 "query": {
  55.                   "query_string": {
  56.                     "default_field": "_all",
  57.                     "query": "this AND that OR thus"
  58.                   }
  59.                 }
  60.               }
  61.             ]
  62.           }
  63.         }
  64.       ]
  65.     }
  66.   }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement