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
QueryException
public static DefaultSearcher newSearcher(QueryClient client) throws QueryException
QueryException
public DefaultSearcher withResultFilter(ResultFilter filter)
SearcherApi
withResultFilter
in interface SearcherApi
filter
- the ResultFilterpublic DefaultSearcher withIndexName(String indexName)
SearcherApi
withIndexName
in interface SearcherApi
indexName
- the index name.public SearcherApi withTransformer(String transformer)
SearcherApi
withTransformer
in interface SearcherApi
transformer
- the transformer.public SearchQueryResultSet search(Criteria criteria) throws QueryException
SearcherApi
search
in interface SearcherApi
criteria
- a SearchCriteria object.QueryException
public SearchQueryResultSet search(String query) throws QueryException
SearcherApi
search
in interface SearcherApi
query
- the raw query.QueryException
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries