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

Uwe Schindler commented on LUCENE-2364:
---------------------------------------

This would also make MTQ's rewrite mode internal collectors better, as they 
convert BytesRef terms from the enums to String Terms, passing to TermQuery and 
inside TermScorer convert back. Whith real binary terms (numerics are not yet 
real binary, they are UTF-8 conform ascii bytes), this would break.

> Add support for terms in BytesRef format to Term, TermQuery, TermRangeQuery & 
> Co.
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-2364
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2364
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: Flex Branch
>            Reporter: Uwe Schindler
>             Fix For: Flex Branch
>
>
> It would be good to directly allow BytesRefs in TermQuery and TermRangeQuery 
> (as both queries convert the strings to BytesRef internally). For 
> NumericRange support in Solr it will be needed to support numerics as ByteRef 
> in single-term queries.
> When this will be added, don't forget to change TestNumericRangeQueryXX to 
> use the BytesRef ctor of TRQ.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to