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 Sun, 17 Feb 2013 10:30:48 GMT
On 16 February 2013 14:35, Robert Muir <rcmuir@gmail.com> wrote:

>
>       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);
>

I'm painstakingly chasing  through the API, but IndexReader (I had to guess
the class you meant for "reader") does not have a terms() method. Only the
Fields class. Could you please expand the first line in something that
compiles? Thanks!

seba

Mime
View raw message