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 <[email protected]> wrote:
> Can someone point me to the code that traverses the posting lists? I
> trying to understand how it works.
>
> Thanks,
>
> Sriram
---
Denis Bazhenov <[email protected]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]