Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Recognize proximity of words
{
"bool": {
"should": [
{
"match": {
"tags": {
"query": "jefferson memorial",
"analyzer": "tag_analyzer"
}
}
},
{
"simple_query_string": {
"fields": [
"title",
"description",
"caption"
],
"query": "jefferson memorial",
"analyzer": "en_analyzer",
"default_operator": "AND"
}
},
{
"match_phrase": {
"title": "jefferson memorial"
}
},
{
"match_phrase": {
"description": "jefferson memorial"
}
},
{
"match_phrase": {
"caption": "jefferson memorial"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.