lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-2514) Change Term to use bytes
Date Thu, 24 Jun 2010 18:03:49 GMT


Michael McCandless commented on LUCENE-2514:

Ahh sorry I do indeed seek to an unpaired high surrogate -- easy to fix (pair it up w/ minimum
low surrogate).

But, there's another problem, which is that the pre-flex codec uses Term.compareTo, and it
needs that to be based on UTF16.  We can just fix the preflex codec to use its own (UTF8inUTF16order)
comparator.  I *think* once we fix those two the test should pass again (crossing fingers...).

> 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.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