lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Updated] (LUCENE-7019) explore two-phase iteration for GeoPoint query
Date Tue, 09 Feb 2016 13:08:18 GMT


Robert Muir updated LUCENE-7019:
    Attachment: LUCENE-7019.patch

updated patch that eliminates more checks for e.g. multi-valued cases (by inverting the logic
to "preapproved" docs).

since here we talk about docs not terms, there is no reason to assume edge cases are "abnormal",
so it basically just flips the logic.

also rather than hardcoding sparse bitset, i added a crude heuristic to use a sparse impl
only when the field is sparse, to try to reduce the overhead of this change.

> explore two-phase iteration for GeoPoint query
> ----------------------------------------------
>                 Key: LUCENE-7019
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-7019.patch, LUCENE-7019.patch
> This query today uses an approximation+confirm approach, but it all happens when you
call scorer(), in a termsEnum loop.
> This causes several problems (even after
because it can do too much work, if queries have multiple values since the doc can be "confirmed"
more than once.
> I think it would be better to delay this confirmation as much as possible, so that other
parts of the query (e.g. other filters, conjunctions, etc) can eliminate checks as well.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message