daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /myindex/name
  2.  
  3. {
  4.     "name" : "mat",
  5.     "id":1
  6. }
  7.    
  8. /myindex/surname    
  9. {
  10.     "surname" : "txt",
  11.     "id":1
  12. }
  13.    
  14. /myindex/_search
  15. {
  16.  
  17.     "query" : {
  18.        "bool" : {
  19.         "should" : [{
  20.             "term" : { "name" : "mat" }
  21.         },
  22.         {
  23.             "term" : { "surname" : "txt" }
  24.         }]
  25.        }
  26.     }
  27. }
RAW Paste Data
Top