public abstract class Search extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
estimatedHitsNumber |
protected long |
execTime |
protected List<Hit> |
hits |
protected static org.slf4j.Logger |
log |
protected boolean |
moreHitsPresent |
protected SearchOptions |
options |
protected User |
searchUser |
protected String |
suggestion |
Modifier | Constructor and Description |
---|---|
protected |
Search() |
Modifier and Type | Method and Description |
---|---|
static Search |
get(SearchOptions opt) |
long |
getEstimatedHitsNumber() |
long |
getExecTime()
Query execution time in milliseconds
|
List<Hit> |
getHits() |
SearchOptions |
getOptions() |
String |
getSuggestion() |
protected abstract void |
internalSearch()
Concrete implementations must give a particular search algorithm that
populates the hits list.
|
boolean |
isMoreHitsPresent() |
static SearchOptions |
newOptions(int type) |
List<Hit> |
search()
Perform the search
|
void |
setMoreHitsPresent(boolean moreHitsPresent) |
void |
setOptions(SearchOptions options) |
protected static org.slf4j.Logger log
protected boolean moreHitsPresent
protected SearchOptions options
protected long estimatedHitsNumber
protected long execTime
protected User searchUser
protected String suggestion
public static Search get(SearchOptions opt)
public static SearchOptions newOptions(int type)
protected abstract void internalSearch() throws Exception
Exception
public boolean isMoreHitsPresent()
public void setMoreHitsPresent(boolean moreHitsPresent)
public long getEstimatedHitsNumber()
public long getExecTime()
public SearchOptions getOptions()
public void setOptions(SearchOptions options)
public String getSuggestion()
Copyright © 2008-2014 Logical Objects. All Rights Reserved.