On 16 February 2013 14:35, Robert Muir <rcm...@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