public interface Client extends Closeable
Modifier and Type | Field and Description |
---|---|
static String |
DELETE_DOCUMENT
Deprecated.
|
static String |
FUZZY_FLAG
Deprecated.
|
static String |
INCREMENT_FLAG
Deprecated.
|
static String |
MAX_FLAG
Deprecated.
|
static String |
PAYLOAD_FLAG
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addDocument(Document doc,
AddOptions options) |
boolean |
addHash(String docId,
double score,
boolean replace) |
Long |
addSuggestion(Suggestion suggestion,
boolean increment)
Add a word to the suggestion index for redis plugin
|
AggregationResult |
aggregate(AggregationBuilder q) |
AggregationResult |
aggregate(AggregationRequest q)
Deprecated.
use
aggregate(AggregationBuilder) instead |
boolean |
createIndex(Schema schema,
Client.IndexOptions options) |
boolean |
cursorDelete(long cursorId) |
AggregationResult |
cursorRead(long cursorId,
int count) |
boolean |
deleteDocument(String docId) |
boolean |
dropIndex(boolean missingOk) |
String |
explain(Query q) |
Document |
getDocument(String docId) |
Map<String,Object> |
getInfo() |
List<Suggestion> |
getSuggestion(String prefix,
SuggestionOptions suggestionOptions)
Request the Suggestions based on the prefix
|
boolean |
replaceDocument(String docId,
double score,
Map<String,Object> fields) |
SearchResult |
search(Query q) |
boolean |
updateDocument(String docId,
double score,
Map<String,Object> fields) |
@Deprecated static final String INCREMENT_FLAG
@Deprecated static final String PAYLOAD_FLAG
@Deprecated static final String MAX_FLAG
@Deprecated static final String FUZZY_FLAG
@Deprecated static final String DELETE_DOCUMENT
boolean createIndex(Schema schema, Client.IndexOptions options)
SearchResult search(Query q)
@Deprecated AggregationResult aggregate(AggregationRequest q)
aggregate(AggregationBuilder)
insteadAggregationResult aggregate(AggregationBuilder q)
boolean cursorDelete(long cursorId)
AggregationResult cursorRead(long cursorId, int count)
boolean addDocument(Document doc, AddOptions options)
boolean addHash(String docId, double score, boolean replace)
boolean deleteDocument(String docId)
boolean dropIndex(boolean missingOk)
Long addSuggestion(Suggestion suggestion, boolean increment)
suggestion
- the Suggestion to be addedincrement
- if we should increment this suggestion or notList<Suggestion> getSuggestion(String prefix, SuggestionOptions suggestionOptions)
prefix
- the partial wordsuggestionOptions
- the options on what you need returned and other usageCopyright © 2019. All rights reserved.