|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchServiceInterface
This is the interface that you use to search an index.
Method Summary | |
---|---|
void |
close()
Close. |
org.apache.lucene.search.Explanation |
explain(org.apache.lucene.search.Query query,
int doc)
Explain. |
int |
getHitTotal()
Gets the hit total. |
org.apache.lucene.document.Document[] |
getNextSearchResults(int howMany)
Gets the next search results. |
float[] |
getScores()
Gets the scores. |
org.apache.lucene.search.Similarity |
getSimilarity()
Gets the similarity. |
boolean |
hasMoreHits()
Checks for more hits. |
org.apache.lucene.document.Document[] |
search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter,
boolean skipLowScoring,
int maxToReturn)
Search. |
void |
search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.HitCollector hitCollector)
Search. |
java.lang.String[] |
searchableFields()
Searchable fields. |
void |
setSimilarity(org.apache.lucene.search.Similarity similarity)
Sets the similarity. |
Method Detail |
---|
java.lang.String[] searchableFields()
void search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, org.apache.lucene.search.HitCollector hitCollector) throws InternalIndexerErrorException, IndexSearchException
query
- the queryfilter
- the filterhitCollector
- the hit collector
InternalIndexerErrorException
- the internal indexer error exception
IndexSearchException
org.apache.lucene.document.Document[] search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, boolean skipLowScoring, int maxToReturn) throws InternalIndexerErrorException
query
- the queryfilter
- the filterskipLowScoring
- the skip low scoringmaxToReturn
- the max to return
InternalIndexerErrorException
- the internal indexer error exceptionorg.apache.lucene.document.Document[] getNextSearchResults(int howMany) throws InternalIndexerErrorException
howMany
- the how many
InternalIndexerErrorException
- the internal indexer error exceptionboolean hasMoreHits()
float[] getScores() throws InternalIndexerErrorException
InternalIndexerErrorException
- the internal indexer error exceptionint getHitTotal()
org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Query query, int doc) throws InternalIndexerErrorException
query
- the querydoc
- the doc
InternalIndexerErrorException
- the internal indexer error exceptionvoid setSimilarity(org.apache.lucene.search.Similarity similarity) throws InternalIndexerErrorException
similarity
- the new similarity
InternalIndexerErrorException
- the internal indexer error exceptionorg.apache.lucene.search.Similarity getSimilarity()
void close() throws InternalIndexerErrorException
InternalIndexerErrorException
- the internal indexer error exception
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |