lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wang <john.w...@gmail.com>
Subject Building a codec with terms of custom Comparator<BytesRef>
Date Tue, 10 Sep 2013 03:27:04 GMT
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

Mime
View raw message