public class NoopSearchClient extends Object implements SearchClient
SRFN
Constructor and Description |
---|
NoopSearchClient() |
NoopSearchClient(Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CompletionStage<SearchResponse> |
index(Search.Artifact artifact)
Index the search artifact.
|
CompletionStage<Boolean> |
initialize(boolean reset)
Initialize the client
|
CompletionStage<SearchResults> |
search(String query)
Execute query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, index
public NoopSearchClient()
public NoopSearchClient(Properties properties)
public CompletionStage<Boolean> initialize(boolean reset)
SearchClient
initialize
in interface SearchClient
reset
- should we re-initialize things; if possiblepublic CompletionStage<SearchResponse> index(Search.Artifact artifact)
SearchClient
index
in interface SearchClient
artifact
- the search artifactpublic CompletionStage<SearchResults> search(String query)
SearchClient
search
in interface SearchClient
query
- the querypublic void close()
close
in interface AutoCloseable
Copyright © 2020 Red Hat. All rights reserved.