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) |
boolean |
addDocument(Document doc,
AddOptions options) |
boolean |
addDocument(String docId,
double score,
Map<String,Object> fields) |
boolean |
addDocument(String docId,
double score,
Map<String,Object> fields,
boolean noSave,
boolean replace,
byte[] payload) |
boolean |
addDocument(String docId,
Map<String,Object> fields) |
boolean[] |
addDocuments(AddOptions options,
Document... docs) |
boolean[] |
addDocuments(Document... docs) |
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 |
alterIndex(Schema.Field... fields) |
boolean |
createIndex(Schema schema,
Client.IndexOptions options) |
boolean |
cursorDelete(long cursorId) |
AggregationResult |
cursorRead(long cursorId,
int count) |
boolean |
deleteDocument(String docId) |
boolean |
deleteDocument(String docId,
boolean deleteDocument) |
boolean[] |
deleteDocuments(boolean deleteDocuments,
String... docIds) |
boolean |
dropIndex() |
boolean |
dropIndex(boolean missingOk) |
String |
explain(Query q) |
Document |
getDocument(String docId) |
Document |
getDocument(String docId,
boolean decode) |
List<Document> |
getDocuments(boolean decode,
String... docIds) |
List<Document> |
getDocuments(String... docIds) |
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) |
SearchResult |
search(Query q,
boolean decode) |
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 usageboolean alterIndex(Schema.Field... fields)
SearchResult search(Query q, boolean decode)
boolean addDocument(String docId, double score, Map<String,Object> fields, boolean noSave, boolean replace, byte[] payload)
boolean addDocument(Document doc)
boolean[] addDocuments(Document... docs)
boolean[] addDocuments(AddOptions options, Document... docs)
boolean[] deleteDocuments(boolean deleteDocuments, String... docIds)
boolean deleteDocument(String docId, boolean deleteDocument)
boolean dropIndex()
Copyright © 2019. All rights reserved.