lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastiano Vigna <vi...@di.unimi.it>
Subject Re: Interleaving and new Lucene formats
Date Sat, 16 Feb 2013 14:37:36 GMT
On 16 February 2013 14:35, Robert Muir <rcmuir@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.

Mime
View raw message