lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <trej...@trypticon.org>
Subject Re: [Deep Esoterica] How do point codecs work?
Date Wed, 25 Jan 2017 04:45:21 GMT
On Tue, Jan 24, 2017 at 10:21 PM, Michael McCandless
<lucene@mikemccandless.com> wrote:
> Hi Trejkaz,
>
> A normal codec would call visitor.compare on smaller and smaller cells
> (1D ranges for the 1D case) of the byte[] space and depending on that
> result would call one of the visit methods, or skip that cell if
> compare returned CELL_OUTSIDE_QUERY.
>
> I think for your case (to migrate all values) you could simply call
> visitor.visit(int docID, byte[] packedValue) for every value in the
> segment.

This does appear to be working. Although admittedly I don't have any
very good tests yet. :)

TX

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


Mime
View raw message