public class HotRodSearchClient extends InfinispanSearchClient
cacheName, COMMON_PROTO_KEY, JSON_CACHE_CONFIG, log, PROTO_CACHE, SEARCH_CACHE_DEFAULT, SEARCH_PROTO_KEY, TYPE, XML_CACHE_CONFIG
SRFN
Constructor and Description |
---|
HotRodSearchClient(Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected int |
defaultPort() |
CompletionStage<SearchResponse> |
index(List<Search.Artifact> artifacts)
Bulk index operation.
|
CompletionStage<SearchResponse> |
index(Search.Artifact artifact)
Index the search artifact.
|
CompletionStage<Boolean> |
initialize(boolean reset)
Initialize the client
|
protected void |
initialize(Properties properties,
String host,
int port,
String username,
String password,
String cacheName) |
CompletionStage<SearchResults> |
search(String query)
Execute query.
|
toFqn, toKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public HotRodSearchClient(Properties properties)
protected int defaultPort()
defaultPort
in class InfinispanSearchClient
protected void initialize(Properties properties, String host, int port, String username, String password, String cacheName)
initialize
in class InfinispanSearchClient
public CompletionStage<Boolean> initialize(boolean reset)
SearchClient
reset
- should we re-initialize things; if possiblepublic CompletionStage<SearchResponse> index(Search.Artifact artifact)
SearchClient
artifact
- the search artifactpublic CompletionStage<SearchResponse> index(List<Search.Artifact> artifacts)
SearchClient
artifacts
- the search artifactspublic CompletionStage<SearchResults> search(String query)
SearchClient
query
- the querypublic void close()
Copyright © 2020 Red Hat. All rights reserved.