public abstract class SearchInvoker extends CloseableInvoker
Constructor and Description |
---|
SearchInvoker() |
Modifier and Type | Method and Description |
---|---|
protected abstract List<Result> |
getSearchResults(CacheKey cacheKey) |
List<Result> |
search(Query query,
QueryPacket queryPacket,
CacheKey cacheKey)
Retrieve the hits for the given
Query . |
protected abstract void |
sendSearchRequest(Query query,
QueryPacket queryPacket) |
close, release, teardown
public List<Result> search(Query query, QueryPacket queryPacket, CacheKey cacheKey) throws IOException
Query
. The invoker may return more than one result, in which case the caller is responsible
for merging the results. If multiple results are returned and the search query had a hit offset other than zero, that offset is
set to zero and the number of requested hits is adjusted accordingly.IOException
protected abstract void sendSearchRequest(Query query, QueryPacket queryPacket) throws IOException
IOException
protected abstract List<Result> getSearchResults(CacheKey cacheKey) throws IOException
IOException
Copyright © 2018. All rights reserved.