Package com.logicaldoc.core.searchengine
Class Search
java.lang.Object
com.logicaldoc.core.searchengine.Search
- Direct Known Subclasses:
 FolderSearch,FulltextSearch,TagSearch
This class executes a search against the full-text indexes
- Author:
 - Michael Scholz
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic Searchget(SearchOptions opt) longlongQuery execution time in millisecondsgetHits()booleanstatic SearchOptionsnewOptions(int type) search()Perform the searchvoidsetMoreHitsPresent(boolean moreHitsPresent) voidsetOptions(SearchOptions options)  
- 
Method Details
- 
get
 - 
newOptions
 - 
search
Perform the search- Returns:
 - The list of hits
 - Throws:
 SearchException- raised in case of error during the search
 - 
getHits
 - 
isMoreHitsPresent
public boolean isMoreHitsPresent() - 
setMoreHitsPresent
public void setMoreHitsPresent(boolean moreHitsPresent)  - 
getEstimatedHitsNumber
public long getEstimatedHitsNumber() - 
getExecTime
public long getExecTime()Query execution time in milliseconds- Returns:
 - the execution time expressed in milliseconds
 
 - 
getOptions
 - 
setOptions
 
 -