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

Percolator could use the new *RangeField to index ranges #21040

Closed
jpountz opened this issue Oct 20, 2016 · 0 comments
Closed

Percolator could use the new *RangeField to index ranges #21040

jpountz opened this issue Oct 20, 2016 · 0 comments
Labels
>enhancement help wanted adoptme high hanging fruit :Search/Percolator Reverse search: find queries that match a document

Comments

@jpountz
Copy link
Contributor

jpountz commented Oct 20, 2016

Lucene has new range fields that we are exposing in #21002. Maybe the same feature could be used to index numeric ranges in the percolator?

@jpountz jpountz added high hanging fruit help wanted adoptme :Search/Percolator Reverse search: find queries that match a document >enhancement labels Oct 20, 2016
martijnvg added a commit that referenced this issue Jul 27, 2017
…ng range queries.

Extracts ranges from range queries on byte, short, integer, long, half_float, scaled_float, float, double, date and ip fields.
byte, short, integer and date ranges are normalized to Lucene's LongRange.
half_float and float are normalized to Lucene's DoubleRange.

When extracting range queries, the QueryAnalyzer computes the width of the range.  This width is used to determine
what range should be preferred in a conjunction query. The QueryAnalyzer prefers the smaller ranges, because these
ranges tend to match with less documents.

Closes #21040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement help wanted adoptme high hanging fruit :Search/Percolator Reverse search: find queries that match a document
Projects
None yet
Development

No branches or pull requests

1 participant