|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISearch
Used for searching, can be used to iterate over search results. WWW: Add something to get a result iterator.
| Method Summary | |
|---|---|
int |
executeQuery(IQuery query)
Executes the given query, returning the number of hits. |
java.util.List<IResult> |
getAllResults()
Gets all results. |
java.util.List<IResult> |
getNextResults()
Gets the next results, at most pageSize results. |
int |
getNumHits()
Returns the number of hits for the current search after it has been executed. |
int |
getPageSize()
Gets the pageSize for getNextResults(). |
java.util.List<IResult> |
getSpecifiedResults(int startIndex,
int numResults)
Gets the specified range of results. |
boolean |
hasMoreResults()
Determine if there are more results. |
void |
initialize(java.util.Properties properties)
|
void |
postQuery()
Should be called when all results have been obtained. |
void |
preQuery()
Should be called before a query is executed. |
void |
setPageSize(int pageSize)
Sets the pageSize for getNextResults(). |
| Method Detail |
|---|
void initialize(java.util.Properties properties)
throws IndexerException
properties - configuration properties for this search object
IndexerExceptionvoid setPageSize(int pageSize)
pageSize - maximum number of results returned when getNextResults() is calledint getPageSize()
int getNumHits()
throws IndexerException
IndexerException
int executeQuery(IQuery query)
throws IndexerException
query - text of query to run
IndexerException
void preQuery()
throws IndexerException
IndexerException
void postQuery()
throws IndexerException
IndexerException
boolean hasMoreResults()
throws IndexerException
IndexerException
java.util.List<IResult> getNextResults()
throws IndexerException
IndexerException
java.util.List<IResult> getAllResults()
throws IndexerException
IndexerException
java.util.List<IResult> getSpecifiedResults(int startIndex,
int numResults)
throws IndexerException
startIndex - Index of the first result to fetchnumResults - Number of results to return
IndexerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||