Last active
May 29, 2017 05:57
-
-
Save astefan/798b9724aaacfa32b6f5bd8da0ed2580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE demotest | |
POST /demotest/demotest/2 | |
{ | |
"name": "Duvvuri ram gopal reddy" | |
} | |
POST /demotest/demotest/1 | |
{ | |
"name": "ram gopal reddy" | |
} | |
POST /demotest/demotest/3 | |
{ | |
"name": "reddy ram gopal" | |
} | |
PUT /demotest/demotest/9 | |
{ | |
"name": "Dulugunti Ram Gopal Reddy " | |
} | |
GET demotest/_search | |
{ | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"match": { | |
"name": "ram gopal reddy" | |
} | |
}, | |
{ | |
"term": { | |
"name.keyword": "ram gopal reddy" | |
} | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment