Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining geo near queries with multi_match #119

Open
rhlr opened this issue Feb 20, 2019 · 0 comments
Open

Combining geo near queries with multi_match #119

rhlr opened this issue Feb 20, 2019 · 0 comments

Comments

@rhlr
Copy link

rhlr commented Feb 20, 2019

I am trying to combine geo near queries with multi match queries using the below query:

{ "where": { "and": [{ "geo": { "near": { "lat": 30.78, "lng": 76.69 } } }, { "native": { "query": { "multi_match": { "query": "python", "fields": ["title", "tags", "description"], "type": "most_fields" } } } }] } }

But all I am getting is empty reponse. Both of the query works fine individually. Also, if I combine other queries with multi_match then multi_match query has no effect on the result. Only the second query gets executed. Can anyone tell me if this the right way to combine these queries ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant