public class DefaultSearcher extends Object implements SearcherApi
Searcher instance which is constructed with default model types.| Constructor and Description |
|---|
DefaultSearcher() |
| Modifier and Type | Method and Description |
|---|---|
static DefaultSearcher |
newSearcher() |
static DefaultSearcher |
newSearcher(QueryClient client) |
SearchQueryResultSet |
search(Criteria criteria)
Searches items based on the given criteria.
|
SearchQueryResultSet |
search(String query)
Searches items based on the given raw query.
|
DefaultSearcher |
withIndexName(String indexName)
Sets the index name to search for.
|
DefaultSearcher |
withResultFilter(ResultFilter filter)
Sets the result filter.
|
SearcherApi |
withTransformer(String transformer)
Sets the transformer.
|
public static DefaultSearcher newSearcher() throws QueryException
QueryExceptionpublic static DefaultSearcher newSearcher(QueryClient client) throws QueryException
QueryExceptionpublic DefaultSearcher withResultFilter(ResultFilter filter)
SearcherApiwithResultFilter in interface SearcherApifilter - the ResultFilterpublic DefaultSearcher withIndexName(String indexName)
SearcherApiwithIndexName in interface SearcherApiindexName - the index name.public SearcherApi withTransformer(String transformer)
SearcherApiwithTransformer in interface SearcherApitransformer - the transformer.public SearchQueryResultSet search(Criteria criteria) throws QueryException
SearcherApisearch in interface SearcherApicriteria - a SearchCriteria object.QueryExceptionpublic SearchQueryResultSet search(String query) throws QueryException
SearcherApisearch in interface SearcherApiquery - the raw query.QueryExceptionCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries