Re: Terminology. LeafReader -> TermEnum -> PostingsEnum

2017-12-14 Thread Mikhail Khludnev
Vadim, I suppose https://vimeo.com/32065505 is old good explanation of all Lucene API dimensions. It covers the most of your questions. FWIW, Leaf is a segment, and postings is a list of occurrences. Regarding attributes in postings, iirc it's only used in some suggester, but now I even can't find

Re: Terminology. LeafReader -> TermEnum -> PostingsEnum

2017-12-14 Thread Vadim Gindin
I made a mistake in issue 5. The real case is the PostingEnum has many implementations, not the DocIdSetIterator. Please read the question 5 as follows. 5. Should I use a concrete implementation of PostingEnum? When it makes sense? Or I always should get PostingsEnum as a result of a call TermEnum

Terminology. LeafReader -> TermEnum -> PostingsEnum

2017-12-14 Thread Vadim Gindin
Hi All I have a question about API. Particularly, about used terminology. 1. LeafReader. Why it starts with "Leaf"? Can I understand that, that such reader is intended for reading only one leaf of index tree? Does it mean that it is working inside a context (LeafReaderContext) of several document