public class SearchServerCommand extends Object
| Modifier and Type | Field and Description |
|---|---|
Map<String,AggregationCommand> |
aggregationCmds |
boolean |
downloadCompleteResults
Causes the return of all results of the query, not only a page or a
batch.
|
boolean |
fetchSource
For multi-field queries, provided the fields that should be queried on
using
#serverQuery. |
List<String> |
fieldsToReturn
The fields for which their original content should be returned.
|
boolean |
filterReviews |
List<HighlightCommand> |
hlCmds |
String |
index
The index to perform the search on.
|
Collection<String> |
indexTypes |
int |
limit
Specifies a limit of documents to retrieve for this search.
|
Map<String,SearchServerQuery> |
namedQueries
Maps a name to a query for easy access, e.g.
|
SearchServerQuery |
postFilterQuery |
SearchServerQuery |
query
A structured search server query.
|
int |
rows
The value Integer.MIN_VALUE means "not set".
|
List<SortCommand> |
sortCmds |
int |
start |
Map<String,List<String>> |
suggestionCategories
For some suggester types, e.g.
|
String |
suggestionField
The field for which to get suggestions.
|
String |
suggestionText
For auto completion, this field exposes the fragment to get suggestions
for.
|
| Constructor and Description |
|---|
SearchServerCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAggregationCommand(AggregationCommand aggCmd) |
void |
addField(String field) |
void |
addHighlightCmd(HighlightCommand hlc) |
void |
addSortCommand(String field,
SortCommand.SortOrder order) |
public SearchServerQuery query
SearchServerQuery. This object has to be cast to its actual
class and does then expose all properties of the server query.SearchServerQuerypublic String suggestionText
public String suggestionField
public Map<String,List<String>> suggestionCategories
public int start
public int rows
public List<String> fieldsToReturn
public boolean fetchSource
#serverQuery. The * wildcard is allowed for the
field names.public Map<String,AggregationCommand> aggregationCmds
public List<HighlightCommand> hlCmds
public boolean filterReviews
public List<SortCommand> sortCmds
public String index
public int limit
public Map<String,SearchServerQuery> namedQueries
public SearchServerQuery postFilterQuery
public Collection<String> indexTypes
public boolean downloadCompleteResults
ElasticSearchServerResponse.getDocumentResults().public void addField(String field)
public void addHighlightCmd(HighlightCommand hlc)
hlc - public void addSortCommand(String field, SortCommand.SortOrder order)
public void addAggregationCommand(AggregationCommand aggCmd)
Copyright © 2017 JULIE Lab, Germany. All rights reserved.