public interface QueryClient
Interface acting as the communication performing entry point to the Query Service.
Modifier and Type | Method and Description |
---|---|
void |
registerQueryTransformer(Class<? extends QueryResultData> resultDataClass,
Class<? extends QueryResult> resultClass,
String transformerName)
Registers the query transformer for given type tokens.
|
<T extends QueryResultData<R>,R extends QueryResult> |
searchById(String index,
String id,
Class<T> resultSetClass,
Class<R> resultClass)
Searches a document by Id.
|
<T extends QueryResultData<R>,R extends QueryResult> |
searchWithCriteria(String index,
String criteria,
Class<T> resultSetClass,
Class<R> resultClass,
ResultFilter filter)
Searches for documents by the specified criteria.
|
void |
shutdown()
Closes any resources hold by client.
|
<T extends QueryResultData<R>,R extends QueryResult> T searchById(String index, String id, Class<T> resultSetClass, Class<R> resultClass) throws QueryException
index
- the search index name.id
- the id.QueryException
<T extends QueryResultData<R>,R extends QueryResult> T searchWithCriteria(String index, String criteria, Class<T> resultSetClass, Class<R> resultClass, ResultFilter filter) throws QueryException
index
- the search index name.criteria
- the criteria.filter
- The result filterQueryException
void registerQueryTransformer(Class<? extends QueryResultData> resultDataClass, Class<? extends QueryResult> resultClass, String transformerName)
void shutdown()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries