lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: Building a codec with terms of custom Comparator<BytesRef>
Date Tue, 10 Sep 2013 03:44:44 GMT
You can implement your own term dictionary with a different order: but
BlockTreeTermsReader doesnt support this (its terms must be in binary
order)

On Mon, Sep 9, 2013 at 8:27 PM, John Wang <john.wang@gmail.com> wrote:
> Hi guys:
>
>    In the codec api, it seems you can set term order via an arbitrary
> Comparator<BytesRef>.
>
>    I tried to use this to create a term dictionary of an order dictated by
> my own Comparator<BytesRef>.
>
>    The problem arises when building the FST. Specifically
> BlockTreeTermsWriter.finishTerm() <- here the ordering decided earlier by
> the Comparator<BytesRef> (from codec) is lost, and errors due to out of
> order.
>
>    Any ideas on how to fix this?
>
> Thanks
>
> -John

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


Mime
View raw message