org.compass.core.lucene.search
Class CountHitCollector
java.lang.Object
org.apache.lucene.search.HitCollector
org.compass.core.lucene.search.CountHitCollector
public class CountHitCollector
- extends HitCollector
A hit collector that only returns the count of the hits.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountHitCollector
public CountHitCollector(float minimumScore)
collect
public void collect(int doc,
float score)
- Specified by:
collect in class HitCollector
getTotalHits
public int getTotalHits()
Copyright (c) 2004-2008 The Compass Project.