I'm not quite sure, what you really need. But as far as I understand, you want 
to get all document id's for a given term. If so, the following code will work 
for you:

Term term = new Term("fieldName", "fieldValue");
TermDocs termDocs = indexReader.termDocs(term);
while (termDocs.next()) {
        int docId = termDocs.doc();
        // work with the document...
}
On Jun 13, 2013, at 1:56 PM, Sriram Sankar <san...@gmail.com> wrote:

> Can someone point me to the code that traverses the posting lists?  I
> trying to understand how it works.
> 
> Thanks,
> 
> Sriram

---
Denis Bazhenov <dot...@gmail.com>






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

Reply via email to