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 http://blog.mikemccandless.com On Mon, Apr 28, 2014 at 12:33 AM, fabric fabricio <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
