Package com.logicaldoc.core.searchengine
Class Search
- java.lang.Object
 - 
- com.logicaldoc.core.searchengine.Search
 
 
- 
- Direct Known Subclasses:
 FolderSearch,FulltextSearch,TagSearch
public abstract class Search extends Object
This class executes a search against the full-text indexes- Author:
 - Michael Scholz
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Searchget(SearchOptions opt)longgetEstimatedHitsNumber()longgetExecTime()Query execution time in millisecondsList<Hit>getHits()SearchOptionsgetOptions()booleanisMoreHitsPresent()static SearchOptionsnewOptions(int type)List<Hit>search()Perform the searchvoidsetMoreHitsPresent(boolean moreHitsPresent)voidsetOptions(SearchOptions options) 
 - 
 
- 
- 
Method Detail
- 
get
public static Search get(SearchOptions opt)
 
- 
newOptions
public static SearchOptions newOptions(int type)
 
- 
search
public final List<Hit> search() throws SearchException
Perform the search- Returns:
 - The list of hits
 - Throws:
 SearchException- raised in case of error during the search
 
- 
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
public SearchOptions getOptions()
 
- 
setOptions
public void setOptions(SearchOptions options)
 
 - 
 
 -