lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: What doc id to use on IndexReader with SetNextReader
Date Mon, 18 Apr 2011 09:28:51 GMT

> Document d = searcher.getIndexReader.document(doc + docBase)

This is of course working, but somehow useless as it transforms the ID two
times and that slows down a little bit. Inside collectors you should *only*
use the IndexReader and Scorer given by the setNextReader / setScorer calls.

> Document d = reader.document(doc)

This is the correct way to do it.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message