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

LUCENE-7655 Speed up geo-distance queries that match most documents #226

Closed
wants to merge 1 commit into from

Conversation

mzasada
Copy link

@mzasada mzasada commented Aug 4, 2017

This change applies optimisation introduced in LUCENE-7641 to speed up geo-distance queries that match most documents.
As in LUCENE-7641, it's done by computing the set of documents that do not match the distance predicate.

@jpountz
Copy link
Contributor

jpountz commented Aug 7, 2017

The change looks good to me. Maybe we should look into writing at least one test that explicitly tests this case?

@mzasada
Copy link
Author

mzasada commented Aug 7, 2017

That was my intention when I added TestLatLonPointQueries#testDistanceQueryWithInvertedIntersection unit test. Should I improve it?

@jpountz
Copy link
Contributor

jpountz commented Aug 7, 2017

Oh, nevermind my previous comment then. I had missed the new test!

@mzasada
Copy link
Author

mzasada commented Aug 7, 2017

No worries :) Thx for a review!

@asfgit asfgit closed this in 5fb800f Aug 7, 2017
@mzasada mzasada deleted the LUCENE-7655 branch August 7, 2017 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants