kotman12 opened a new issue, #17005:
URL: https://github.com/apache/lucene/issues/17005

   ### Description
   
   Elastic's percolator already has support for this. The percolator 
implementation indexes the lower and upper bounds into special fields and then 
each numeric value in the document gets range-searched, i.e. 
`field_lower_bound:[MIN_VAL TO doc.value] AND field_upper_bound:[doc.value TO 
MAX_VAL]`.
   
   An alternative approach to this would be to use term-backed cells of varying 
granularity. It may seem less intuitive, but it does have some advantages. The 
biggest advantage is that it can be easily plugged in to existing term filtered 
pre-search machinery, and not require a coordinating layer. Since this is 
approximate it should be ok to do. The other advantage is you get to use the 
term-acceptor which may greatly reduce the number of query clauses generated 
when converting a document to a query. When you index ranges as terms you get 
the advantage of only caring about the terms you know are in the query index. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to