You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2013/12/26 23:31:51 UTC

[jira] [Comment Edited] (LUCENE-5378) Enable using extended field types with prefix queries for non-default encoded strings

    [ 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: yseeley@gmail.com):
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org