[ 
https://issues.apache.org/jira/browse/LUCENE-5378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13857132#comment-13857132
 ] 

Yonik Seeley edited comment on LUCENE-5378 at 12/26/13 10:31 PM:
-----------------------------------------------------------------

readableToIndexed may not work well with some types... perhaps we should have a
FieldType.getPrefixQuery(QParser qparser, SchemaField sfield, String prefix)
essentially do it like getRangeQuery


was (Author: [email protected]):
readableToIndexed may not work well with some types... perhaps we should have a
FieldType.getPrefixQuery(SchemaField sfield, String prefix, QParser qparser)

> Enable using extended field types with prefix queries for non-default encoded 
> strings
> -------------------------------------------------------------------------------------
>
>                 Key: LUCENE-5378
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5378
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/queryparser
>    Affects Versions: 4.6
>            Reporter: Anshum Gupta
>            Priority: Minor
>
> Enable users to be able to use prefix query with custom field types with 
> non-default encoding/decoding for queries more easily. e.g. having a custom 
> field work with base64 encoded query strings.
> Currently, the workaround for it is to have the override at getRewriteMethod 
> level. Perhaps having the prefixQuery also use the calling FieldType's 
> readableToIndexed method would work better.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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

Reply via email to