lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Posting list
Date Mon, 28 Apr 2014 10:12:56 GMT
Postings are more like SortedMap<byte[],List(int,int)>, ie terms are
binary, and are in sorted order.

Are you referring to the indexing chain classes, e.g.
FreqProxTermsWriterPerField.FreqProxPostingsArray?  That class holds
the postings in IndexWriter's RAM buffer until it's time to write them
to disk as a new segment.  Those data structures are somewhat
confusing, but once they are written to disk and opened for reading
they are exposed via the FieldsProducer API.

Mike McCandless

On Mon, Apr 28, 2014 at 12:33 AM, fabric fabricio
<> wrote:
> Can you explain how dictionary are linked with this implementation of
> posting lists. In traditional case we have dictionary like
> hashmap[String,List(int,int)] //word -> docid, termfreq. In this case
> dictionary points to "parallel arrays" slots and in the "poitner array"
> points to most recent docid in the posting list what means "to search the
> posting list" in other words how this maps to List(int,int) part

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message