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 Search
get
(SearchOptions opt) long
long
Query execution time in millisecondsgetHits()
boolean
static SearchOptions
newOptions
(int type) search()
Perform the searchvoid
setMoreHitsPresent
(boolean moreHitsPresent) void
setOptions
(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
-