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 SummaryModifier 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
- 
searchPerform the search- Returns:
- The list of hits
- Throws:
- SearchException- raised in case of error during the search
 
- 
getHits
- 
isMoreHitsPresentpublic boolean isMoreHitsPresent()
- 
setMoreHitsPresentpublic void setMoreHitsPresent(boolean moreHitsPresent) 
- 
getEstimatedHitsNumberpublic long getEstimatedHitsNumber()
- 
getExecTimepublic long getExecTime()Query execution time in milliseconds- Returns:
- the execution time expressed in milliseconds
 
- 
getOptions
- 
setOptions
 
-