Skip to content

Instantly share code, notes, and snippets.

@b-abctech
Created December 17, 2013 02:20
Show Gist options
  • Save b-abctech/7998907 to your computer and use it in GitHub Desktop.
Save b-abctech/7998907 to your computer and use it in GitHub Desktop.
Search query string like with multiple fields
GET /stories/fairytale/_search
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"or": [
{
"query": {
"match_phrase": {
"title": "red"
}
}
},
{
"query": {
"match": {
"wrote": "1835"
}
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment