You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2016/02/23 19:29:18 UTC

[jira] [Updated] (LUCENE-7045) remove all encode/decode hooks from PointRangeQuery

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

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

Here's a patch. 

Points get a little api cleanup, we don't need to expose so much guts anymore, just generally an {{encodeDimension}} and {{decodeDimension}} so that anyone doing anything custom is able to do it.

{{PointRangeQuery}} is marked abstract and has references to the core points to remove any confusion.

> remove all encode/decode hooks from PointRangeQuery
> ---------------------------------------------------
>
>                 Key: LUCENE-7045
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7045
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Robert Muir
>         Attachments: LUCENE-7045.patch
>
>
> In LUCENE-7043 we added several new point types and just gave them static methods to generate exact/range/prefix/whatever queries.
> I think we should do the same in general, e.g. for IntPoint:
> {code}
> This field defines static factory methods for creating common queries:
> <ul>
>   <li>{@link #newExactQuery newExactQuery()} for matching an exact 1D point.
>   <li>{@link #newRangeQuery newRangeQuery()} for matching a 1D range.
>   <li>{@link #newMultiRangeQuery newMultiRangeQuery()} for matching points/ranges in n-dimensional space.
> </ul>
> {code}
> Then each Point can have types that make sense for it: e.g. multi-dimensional range queries don't make sense at all for IP addresses, but prefix query does, and polygon/distance queries make sense for LatLonPoint and so on (that one is not refactored yet here, followup!)



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org