|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.plugins.search.lucene.CapturingHandler
public class CapturingHandler
Captures the results of a Lucene search into memory.
Constructor Summary | |
---|---|
CapturingHandler(int noOfResultsPerPage,
int pageNo)
Constructor. |
Method Summary | |
---|---|
java.util.Set<java.util.UUID> |
getHits()
Accessor. |
int |
getTotalResultsCount()
Accessor. |
void |
handle(org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.TopDocs docs)
Process the results of a search. |
protected java.util.UUID |
lookupResourceId(org.apache.lucene.search.IndexSearcher searcher,
int docId)
Determine the CCC resource id for a search hit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CapturingHandler(int noOfResultsPerPage, int pageNo)
noOfResultsPerPage
- The number of results on a page.pageNo
- The page of results to capture.Method Detail |
---|
public void handle(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.TopDocs docs) throws java.io.IOException
searcher
- The lucene index searcher used for the search.docs
- The results from the search.
java.io.IOException
- If an error occurs accessing the index.protected java.util.UUID lookupResourceId(org.apache.lucene.search.IndexSearcher searcher, int docId) throws java.io.IOException
searcher
- The lucene index searcher.docId
- The lucene document id.
java.io.IOException
- If an error occurs while reading the index.public java.util.Set<java.util.UUID> getHits()
public int getTotalResultsCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |