[ 
https://issues.apache.org/jira/browse/LUCENE-7381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicholas Knize updated LUCENE-7381:
-----------------------------------
    Attachment: LUCENE-7381.patch

Initial patch for adding a new {{RangeField}} to sandbox that indexes ranges up 
to 4 dimensions representing:

* 1d : single axis
* 2d : bounding box
* 3d : bounding cube
* 4d : tesseract

A new {{RangeFieldQuery}} class is also added that supports intersects, within, 
and contains query.

Multiple range values per document is supported, as well as indexing and 
querying open ended ranges using {{Double.NEGATIVE_INFINITY}} and 
{{Double.POSITIVE_INFINITY}}. 

Random testing (inspired by the rigorous testing in {{BaseGeoPointTestCase}}) 
is also provided. It currently tests only 2 dimensions so support for random 
dimension testing still needs to be added.

Nearly all of the Point based fields end with {{Point}} but I thought 
{{RangePoint}} and {{RangePointQuery}} might be a bit too confusing with 
{{PointRangeQuery}}. (naming is hard. the field type can always be refactored)

> Add new RangeField
> ------------------
>
>                 Key: LUCENE-7381
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7381
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Nicholas Knize
>         Attachments: LUCENE-7381.patch
>
>
> I've been tinkering with a new Point-based {{RangeField}} for indexing 
> numeric ranges that could be useful for a number of applications.
> For example, a single dimension represents a span along a single axis such as 
> indexing calendar entries start and end time, 2d range could represent 
> bounding boxes for geometric applications (e.g., supporting Point based geo 
> shapes), 3d ranges bounding cubes for 3d geometric applications (collision 
> detection, 3d geospatial), and 4d ranges for space time applications. I'm 
> sure there's applicability for 5d+ ranges but a first incarnation should 
> likely limit for performance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to