0

I want to query documents with biasing according to distance from a geo_point, currently I'm using the geo_distance filter which filters all documents with larger distance, but I want some sort of biasing.

for example, If I'm querying for 10 documents and only 6 falls inside the geo_distance filter, return also 4 documents that have a larger distance.

how can I do this ?

1 Answer 1

1

Wrap your main query into Custom Filters Score Query and put your geo_distance filter as one of the filters.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.