public abstract class BaseIndexSearcher extends Object implements IndexSearcher, QuerySuggester
Constructor and Description |
---|
BaseIndexSearcher() |
Modifier and Type | Method and Description |
---|---|
protected void |
populateUID(Document document,
QueryConfig queryConfig) |
Hits |
search(String searchEngineId,
long companyId,
Query query,
Sort[] sorts,
int start,
int end)
Deprecated.
As of 7.0.0, replaced by
IndexSearcher.search(SearchContext,
Query) |
void |
setQuerySuggester(QuerySuggester querySuggester) |
String |
spellCheckKeywords(SearchContext searchContext) |
Map<String,List<String>> |
spellCheckKeywords(SearchContext searchContext,
int max) |
SuggesterResults |
suggest(SearchContext searchContext,
Suggester suggester) |
String[] |
suggestKeywordQueries(SearchContext searchContext,
int max) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQueryString, search, searchCount
@Deprecated public Hits search(String searchEngineId, long companyId, Query query, Sort[] sorts, int start, int end) throws SearchException
IndexSearcher.search(SearchContext,
Query)
search
in interface IndexSearcher
SearchException
public void setQuerySuggester(QuerySuggester querySuggester)
public String spellCheckKeywords(SearchContext searchContext) throws SearchException
spellCheckKeywords
in interface QuerySuggester
SearchException
public Map<String,List<String>> spellCheckKeywords(SearchContext searchContext, int max) throws SearchException
spellCheckKeywords
in interface QuerySuggester
SearchException
public SuggesterResults suggest(SearchContext searchContext, Suggester suggester) throws SearchException
suggest
in interface QuerySuggester
SearchException
public String[] suggestKeywordQueries(SearchContext searchContext, int max) throws SearchException
suggestKeywordQueries
in interface QuerySuggester
SearchException
protected void populateUID(Document document, QueryConfig queryConfig)