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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
