On 16 February 2013 14:35, Robert Muir <rcm...@gmail.com> wrote:

2. index them, but specify you won't ask for them in the DocsEnum: and
> just use that to iterate documents.
>
>       TermsEnum termsEnum = reader.terms("body").iterator(null);
>       boolean found = termsEnum.seekExact(new BytesRef("dogs"), false);
>       // pass 0, to not ask for frequencies
>       DocsEnum docsEnum = termsEnum.docs(reader.getLiveDocs(), null, 0);
>

Thank you. That's exactly the information I was looking for.

Reply via email to