mirror of https://github.com/apache/lucene.git
Javadoc update:
The example impl in Collector missed the new method acceptsDocsOutOfOrder, added and reformatted git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788203 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8173b9f253
commit
5f61172464
|
@ -93,9 +93,14 @@ import org.apache.lucene.index.IndexReader;
|
|||
* searcher.search(query, new Collector() {
|
||||
* private int docBase;
|
||||
*
|
||||
* // ignore scorer
|
||||
* <em>// ignore scorer</em>
|
||||
* public void setScorer(Scorer scorer) {
|
||||
* }
|
||||
*
|
||||
* <em>// accept docs out of order (for a BitSet it doesn't matter)</em>
|
||||
* public boolean acceptsDocsOutOfOrder() {
|
||||
* return true;
|
||||
* }
|
||||
*
|
||||
* public void collect(int doc) {
|
||||
* bits.set(doc + docBase);
|
||||
|
|
Loading…
Reference in New Issue