| Package | Description |
|---|---|
| org.elasticsearch.action.search |
Search action.
|
| org.elasticsearch.index.query.support | |
| org.elasticsearch.rest.action.search | |
| org.elasticsearch.search.builder |
| Modifier and Type | Method and Description |
|---|---|
SearchSourceBuilder |
SearchRequestBuilder.internalBuilder()
Returns the internal search source builder used to construct the request.
|
| Modifier and Type | Method and Description |
|---|---|
SearchRequest |
SearchRequest.extraSource(SearchSourceBuilder sourceBuilder)
Allows to provide additional source that will be used as well.
|
SearchRequestBuilder |
SearchRequestBuilder.internalBuilder(SearchSourceBuilder sourceBuilder)
Sets the source builder to be used with this request.
|
SearchRequest |
SearchRequest.source(SearchSourceBuilder sourceBuilder)
The source of the search request.
|
| Modifier and Type | Field and Description |
|---|---|
protected SearchSourceBuilder |
BaseInnerHitBuilder.sourceBuilder |
| Modifier and Type | Method and Description |
|---|---|
protected SearchSourceBuilder |
BaseInnerHitBuilder.sourceBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static SearchSourceBuilder |
RestSearchAction.parseSearchSource(RestRequest request) |
| Modifier and Type | Method and Description |
|---|---|
SearchSourceBuilder |
SearchSourceBuilder.addRescorer(RescoreBuilder rescoreBuilder) |
SearchSourceBuilder |
SearchSourceBuilder.aggregation(AbstractAggregationBuilder aggregation)
Add an get to perform as part of the search.
|
SearchSourceBuilder |
SearchSourceBuilder.aggregations(byte[] aggregationsBinary)
Sets a raw (xcontent / json) addAggregation.
|
SearchSourceBuilder |
SearchSourceBuilder.aggregations(byte[] aggregationsBinary,
int aggregationsBinaryOffset,
int aggregationsBinaryLength)
Sets a raw (xcontent / json) addAggregation.
|
SearchSourceBuilder |
SearchSourceBuilder.aggregations(BytesReference aggregationsBinary)
Sets a raw (xcontent / json) addAggregation.
|
SearchSourceBuilder |
SearchSourceBuilder.aggregations(Map aggregations)
Sets a raw (xcontent / json) addAggregation.
|
SearchSourceBuilder |
SearchSourceBuilder.aggregations(XContentBuilder aggs)
Sets a raw (xcontent / json) addAggregation.
|
SearchSourceBuilder |
SearchSourceBuilder.clearRescorers() |
SearchSourceBuilder |
SearchSourceBuilder.defaultRescoreWindowSize(int defaultRescoreWindowSize)
Deprecated.
use
RescoreBuilder.windowSize(int) instead. |
SearchSourceBuilder |
SearchSourceBuilder.explain(Boolean explain)
Should each
SearchHit be returned with
an explanation of the hit (ranking). |
SearchSourceBuilder |
SearchSourceBuilder.fetchSource(boolean fetch)
Indicates whether the response should contain the stored _source for
every hit
|
SearchSourceBuilder |
SearchSourceBuilder.fetchSource(FetchSourceContext fetchSourceContext)
Indicate how the _source should be fetched.
|
SearchSourceBuilder |
SearchSourceBuilder.fetchSource(String[] includes,
String[] excludes)
Indicate that _source should be returned with every hit, with an
"include" and/or "exclude" set which can include simple wildcard
elements.
|
SearchSourceBuilder |
SearchSourceBuilder.fetchSource(String include,
String exclude)
Indicate that _source should be returned with every hit, with an
"include" and/or "exclude" set which can include simple wildcard
elements.
|
SearchSourceBuilder |
SearchSourceBuilder.field(String name)
Adds a field to load and return (note, it must be stored) as part of the
search request.
|
SearchSourceBuilder |
SearchSourceBuilder.fieldDataField(String name)
Adds a field to load from the field data cache and return as part of the
search request.
|
SearchSourceBuilder |
SearchSourceBuilder.fields(List<String> fields)
Sets the fields to load and return as part of the search request.
|
SearchSourceBuilder |
SearchSourceBuilder.fields(String... fields)
Adds the fields to load and return as part of the search request.
|
SearchSourceBuilder |
SearchSourceBuilder.from(int from)
From index to start the search from.
|
SearchSourceBuilder |
SearchSourceBuilder.highlight(HighlightBuilder highlightBuilder)
Adds highlight to perform as part of the search.
|
SearchSourceBuilder |
SearchSourceBuilder.indexBoost(String index,
float indexBoost)
Sets the boost a specific index will receive when the query is executeed
against it.
|
SearchSourceBuilder |
SearchSourceBuilder.minScore(float minScore)
Sets the minimum score below which docs will be filtered out.
|
SearchSourceBuilder |
SearchSourceBuilder.noFields()
Sets no fields to be loaded, resulting in only id and type to be returned
per field.
|
SearchSourceBuilder |
SearchSourceBuilder.postFilter(byte[] postFilter)
Sets a filter on the query executed that only applies to the search query
(and not aggs for example).
|
SearchSourceBuilder |
SearchSourceBuilder.postFilter(byte[] postFilterBinary,
int postFilterBinaryOffset,
int postFilterBinaryLength)
Sets a filter on the query executed that only applies to the search query
(and not aggs for example).
|
SearchSourceBuilder |
SearchSourceBuilder.postFilter(BytesReference postFilterBinary)
Sets a filter on the query executed that only applies to the search query
(and not aggs for example).
|
SearchSourceBuilder |
SearchSourceBuilder.postFilter(Map postFilter)
Constructs a new search source builder with a query from a map.
|
SearchSourceBuilder |
SearchSourceBuilder.postFilter(QueryBuilder postFilter)
Sets a filter that will be executed after the query has been executed and
only has affect on the search hits (not aggregations).
|
SearchSourceBuilder |
SearchSourceBuilder.postFilter(String postFilterString)
Sets a filter on the query executed that only applies to the search query
(and not aggs for example).
|
SearchSourceBuilder |
SearchSourceBuilder.postFilter(XContentBuilder postFilter)
Constructs a new search source builder with a query from a builder.
|
SearchSourceBuilder |
SearchSourceBuilder.profile(boolean profile)
Should the query be profiled.
|
SearchSourceBuilder |
SearchSourceBuilder.query(byte[] queryBinary)
Constructs a new search source builder with a raw search query.
|
SearchSourceBuilder |
SearchSourceBuilder.query(byte[] queryBinary,
int queryBinaryOffset,
int queryBinaryLength)
Constructs a new search source builder with a raw search query.
|
SearchSourceBuilder |
SearchSourceBuilder.query(BytesReference queryBinary)
Constructs a new search source builder with a raw search query.
|
SearchSourceBuilder |
SearchSourceBuilder.query(Map query)
Constructs a new search source builder with a query from a map.
|
SearchSourceBuilder |
SearchSourceBuilder.query(QueryBuilder query)
Constructs a new search source builder with a search query.
|
SearchSourceBuilder |
SearchSourceBuilder.query(QuerySourceBuilder querySourceBuilder)
Sets the query provided as a
QuerySourceBuilder |
SearchSourceBuilder |
SearchSourceBuilder.query(String queryString)
Constructs a new search source builder with a raw search query.
|
SearchSourceBuilder |
SearchSourceBuilder.query(XContentBuilder query)
Constructs a new search source builder with a query from a builder.
|
SearchSourceBuilder |
SearchSourceBuilder.scriptField(String name,
Script script)
Adds a script field under the given name with the provided script.
|
static SearchSourceBuilder |
SearchSourceBuilder.searchSource()
A static factory method to construct a new search source.
|
SearchSourceBuilder |
SearchSourceBuilder.size(int size)
The number of search hits to return.
|
SearchSourceBuilder |
SearchSourceBuilder.sort(SortBuilder sort)
Adds a sort builder.
|
SearchSourceBuilder |
SearchSourceBuilder.sort(String name)
Add a sort against the given field name.
|
SearchSourceBuilder |
SearchSourceBuilder.sort(String name,
SortOrder order)
Adds a sort against the given field name and the sort ordering.
|
SearchSourceBuilder |
SearchSourceBuilder.stats(String... statsGroups)
The stats groups this request will be aggregated under.
|
SearchSourceBuilder |
SearchSourceBuilder.terminateAfter(int terminateAfter)
An optional terminate_after to terminate the search after collecting
terminateAfter documents |
SearchSourceBuilder |
SearchSourceBuilder.timeout(String timeout)
An optional timeout to control how long search is allowed to take.
|
SearchSourceBuilder |
SearchSourceBuilder.timeout(TimeValue timeout)
An optional timeout to control how long search is allowed to take.
|
SearchSourceBuilder |
SearchSourceBuilder.trackScores(boolean trackScores)
Applies when sorting, and controls if scores will be tracked as well.
|
SearchSourceBuilder |
SearchSourceBuilder.version(Boolean version)
Should each
SearchHit be returned with a
version associated with it. |
Copyright © 2009–2017. All rights reserved.