lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] Updated: (LUCENE-2514) Change Term to use bytes
Date Fri, 25 Jun 2010 01:54:50 GMT


Robert Muir updated LUCENE-2514:

    Attachment: LUCENE-2514.patch

We also need to fix FieldCache/TermRangeQuery, since they now take separate String upper/lower.
We could just add corresponding BytesRef methods?

This actually makes the api ugly and problematic for ctors, because of open-ended values (null).
it would be nice to avoid requiring users to cast here...
    [javac] /../eclipse/workspace/solrcene-spell/lucene/src/test/org/apache/lucene/search/
reference to TermRangeQuery is ambiguous, both method TermRangeQuery(java.lang.String,java.lang.String,java.lang.String,boolean,boolean)
in and method TermRangeQuery(java.lang.String,org.apache.lucene.util.BytesRef,org.apache.lucene.util.BytesRef,boolean,boolean)
in match
    [javac]     TermRangeQuery query = new TermRangeQuery("content", null, null, true, true);

attached is my updates to TermRangeQuery etc before realizing this. it also includes updated
FieldCacheRangeQuery complete with generics violations.

maybe when the policeman wakes up he will have ideas. i don't want the api to be ugly.

> Change Term to use bytes
> ------------------------
>                 Key: LUCENE-2514
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: Search
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>         Attachments: LUCENE-2514-MTQPagedBytes.patch, LUCENE-2514-surrogates-dance.patch,
LUCENE-2514.patch, LUCENE-2514.patch, LUCENE-2514.patch, LUCENE-2514.patch, LUCENE-2514.patch,
LUCENE-2514.patch, LUCENE-2514.patch
> in LUCENE-2426, the sort order was changed to codepoint order.
> unfortunately, Term is still using string internally, and more importantly its compareTo()
uses the wrong order [utf-16].
> So MultiTermQuery, etc (especially its priority queues) are currently wrong.
> By changing Term to use bytes, we can also support terms encoded as bytes such as numerics,
instead of using
> strange string encodings.

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:
For additional commands, e-mail:

View raw message