Hi Adrien thank you very much. It worked.
have a good day On Jun 18, 2013, at 5:35 AM, Adrien Grand <[email protected]> wrote: > Hi, > > You didn't say specifically what your problem is so I assume it is > with the following method: > > On Tue, Jun 18, 2013 at 4:37 AM, Peyman Faratin <[email protected]> > wrote: >> public void setNextReader(IndexReader reader, int docBase) >> throws IOException{ >> this.docBase = docBase; >> store = FieldCache.DEFAULT.getStrings(reader,"title"); >> } > > setNextReader now takes an AtomicReaderContext as an argument and > FieldCache.getStrings is now FieldCache.getTerms, so this would give > something like > > private BinaryDocValues store; > > public void setNextReader(AtomicReaderContext ctx) throws IOException{ > this.docBase = ctx.docBase; > this.store = FieldCache.DEFAULT.getTerms(ctx.reader(), "title"); > } > > public void collect(int doc) throws IOException { > BytesRef page = new BytesRef(); > store.get(doc, page); > if (page.bytes != BinaryDocValues.MISSING) { > outLinks.add(page.utf8ToString()); > } > } > > -- > Adrien > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
