David Smiley created LUCENE-5746:
------------------------------------

             Summary: Add DecimalRangePrefixTree
                 Key: LUCENE-5746
                 URL: https://issues.apache.org/jira/browse/LUCENE-5746
             Project: Lucene - Core
          Issue Type: New Feature
          Components: modules/spatial
            Reporter: David Smiley


The abstract class NumberRangePrefixTree only has a DateRangePrefixTree 
concrete implementation. Obviously an integer/long based subclass would be 
great too, and wouldn't be as difficult as Dates except for its extra 
configurability.  

I imagine a user being able to specify the smallest value and the largest value 
(or pre-fill both based on full ranges of Integer or Long or Float or Double).  
When Float or Double is used, it would internally use the int or long 
representation (e.g. Double.doubleToLongBits). It should have the option of 
working in fixed-point decimal, or floating-point.  Fixed-point is advantageous 
assuming the ranges (indexed and/or query) are expected to use multiples of 10 
(for example) because then you could configure the cells-per-level to be 10.

The existing abstract "NumberRangePrefixTree" should perhaps be renamed to 
"AbstractRangePrefixTree" thus freeing up its existing name for the feature 
called out on this issue.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to