public interface Client
Modifier and Type | Field and Description |
---|---|
static String |
FUZZY_FLAG |
static String |
INCREMENT_FLAG |
static String |
MAX_FLAG |
static String |
PAYLOAD_FLAG |
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(AggregationRequest q) |
boolean |
createIndex(Schema schema,
Client.IndexOptions options) |
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) |
static final String INCREMENT_FLAG
static final String PAYLOAD_FLAG
static final String MAX_FLAG
static final String FUZZY_FLAG
boolean createIndex(Schema schema, Client.IndexOptions options)
SearchResult search(Query q)
AggregationResult aggregate(AggregationRequest q)
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 © 2018. All rights reserved.