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

Alan Woodward updated LUCENE-7804:
----------------------------------
    Attachment: LUCENE-7804.patch

Here's a first-pass go at adding support for different point field types in 
QueryParserBase.  To register a particular field as a LongPoint, users call 
queryparser.setFieldBuilder(fieldname, FieldQueryBuilder); the queryparser will 
then recognise this field, and produce appropriate exact or range queries.

Most of the work is delegated to the new FieldQueryBuilder interface, which has 
static methods for LongPoint and DoublePoint.  Multi-dimensional values and 
open ranges are supported.

FQB is in core, as I think it would be useful for field types in eg sandbox or 
spatial to make themselves available via the classic queryparser.

If people think this is a good idea I'll add FloatPoint and IntPoint handling, 
plus javadocs, etc.

> Add point field handling to QueryParserBase
> -------------------------------------------
>
>                 Key: LUCENE-7804
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7804
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: core/queryparser
>            Reporter: Alan Woodward
>         Attachments: LUCENE-7804.patch
>
>
> The classic query parser (and other parsers extending it) don't handle point 
> fields yet.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to