Modifier and Type | Method and Description |
---|---|
ValidateQueryRequestBuilder |
ValidateQueryRequestBuilder.setQuery(QueryBuilder queryBuilder)
The query source to validate.
|
Modifier and Type | Method and Description |
---|---|
CountRequestBuilder |
CountRequestBuilder.setQuery(QueryBuilder queryBuilder)
The query source to execute.
|
Modifier and Type | Method and Description |
---|---|
DeleteByQueryRequestBuilder |
DeleteByQueryRequestBuilder.setQuery(QueryBuilder queryBuilder)
The query to delete documents for.
|
Modifier and Type | Method and Description |
---|---|
ExistsRequestBuilder |
ExistsRequestBuilder.setQuery(QueryBuilder queryBuilder)
The query source to execute.
|
Modifier and Type | Method and Description |
---|---|
ExplainRequestBuilder |
ExplainRequestBuilder.setQuery(QueryBuilder query)
Sets the query to get a score explanation for.
|
Modifier and Type | Method and Description |
---|---|
PercolateRequestBuilder |
PercolateRequestBuilder.setPercolateQuery(QueryBuilder queryBuilder)
Delegates to
PercolateSourceBuilder.setQueryBuilder(QueryBuilder) |
PercolateSourceBuilder |
PercolateSourceBuilder.setQueryBuilder(QueryBuilder queryBuilder)
Sets a query to reduce the number of percolate queries to be evaluated and score the queries that match based
on this query.
|
Modifier and Type | Method and Description |
---|---|
SearchRequestBuilder |
SearchRequestBuilder.setHighlighterQuery(QueryBuilder highlightQuery)
Sets a query to be used for highlighting all fields instead of the search query.
|
SearchRequestBuilder |
SearchRequestBuilder.setQuery(QueryBuilder queryBuilder)
Constructs a new search source builder with a search query.
|
Modifier and Type | Method and Description |
---|---|
QuerySourceBuilder |
QuerySourceBuilder.setQuery(QueryBuilder query) |
Modifier and Type | Interface and Description |
---|---|
interface |
MultiTermQueryBuilder |
interface |
SpanQueryBuilder |
Modifier and Type | Class and Description |
---|---|
class |
BaseQueryBuilder |
class |
BoolQueryBuilder
A Query that matches documents matching boolean combinations of other queries.
|
class |
BoostingQueryBuilder
The BoostingQuery class can be used to effectively demote results that match a given query.
|
class |
CommonTermsQueryBuilder
CommonTermsQuery query is a query that executes high-frequency terms in a
optional sub-query to prevent slow queries due to "common" terms like
stopwords.
|
class |
ConstantScoreQueryBuilder
A query that wraps a filter and simply returns a constant score equal to the
query boost for every document in the filter.
|
class |
DisMaxQueryBuilder
A query that generates the union of documents produced by its sub-queries, and that scores each document
with the maximum score for that document as produced by any sub-query, plus a tie breaking increment for any
additional matching sub-queries.
|
class |
FieldMaskingSpanQueryBuilder |
class |
FilteredQueryBuilder
A query that applies a filter to the results of another query.
|
class |
FuzzyLikeThisFieldQueryBuilder |
class |
FuzzyLikeThisQueryBuilder |
class |
FuzzyQueryBuilder
A Query that does fuzzy matching for a specific value.
|
class |
GeoShapeQueryBuilder
QueryBuilder that builds a GeoShape Query |
class |
HasChildQueryBuilder |
class |
HasParentQueryBuilder
Builder for the 'has_parent' query.
|
class |
IdsQueryBuilder
A query that will return only documents matching specific ids (and a type).
|
class |
IndicesQueryBuilder
A query that will execute the wrapped query only for the specified indices, and "match_all" when
it does not match those indices (by default).
|
class |
MatchAllQueryBuilder
A query that matches on all documents.
|
class |
MatchQueryBuilder
Match query is a query that analyzes the text and constructs a query as the result of the analysis.
|
class |
MoreLikeThisFieldQueryBuilder
Deprecated.
|
class |
MoreLikeThisQueryBuilder
A more like this query that finds documents that are "like" the provided
MoreLikeThisQueryBuilder.likeText(String)
which is checked against the fields the query is constructed with. |
class |
MultiMatchQueryBuilder
Same as
MatchQueryBuilder but supports multiple fields. |
class |
NestedQueryBuilder |
class |
PrefixQueryBuilder
A Query that matches documents containing terms with a specified prefix.
|
class |
QueryStringQueryBuilder
A query that parses a query string and runs it.
|
class |
RangeQueryBuilder
A Query that matches documents within an range of terms.
|
class |
RegexpQueryBuilder
A Query that does fuzzy matching for a specific value.
|
class |
SimpleQueryStringBuilder
SimpleQuery is a query parser that acts similar to a query_string
query, but won't throw exceptions for any weird string syntax.
|
class |
SpanFirstQueryBuilder |
class |
SpanMultiTermQueryBuilder |
class |
SpanNearQueryBuilder |
class |
SpanNotQueryBuilder |
class |
SpanOrQueryBuilder |
class |
SpanTermQueryBuilder |
class |
TemplateQueryBuilder
Facilitates creating template query requests.
|
class |
TermQueryBuilder
A Query that matches documents containing a term.
|
class |
TermsQueryBuilder |
class |
TopChildrenQueryBuilder |
class |
WildcardQueryBuilder
Implements the wildcard search query.
|
class |
WrapperQueryBuilder
A Query builder which allows building a query thanks to a JSON string or binary data.
|
Modifier and Type | Method and Description |
---|---|
DisMaxQueryBuilder |
DisMaxQueryBuilder.add(QueryBuilder queryBuilder)
Add a sub-query to this disjunction.
|
static ConstantScoreQueryBuilder |
QueryBuilders.constantScoreQuery(QueryBuilder queryBuilder)
A query that wraps another query and simply returns a constant score equal to the
query boost for every document in the query.
|
static FilteredQueryBuilder |
QueryBuilders.filtered(QueryBuilder queryBuilder,
FilterBuilder filterBuilder)
Deprecated.
Use filteredQuery instead (rename)
Will be removed in elasticsearch 2.0.0
|
static FilteredQueryBuilder |
QueryBuilders.filteredQuery(QueryBuilder queryBuilder,
FilterBuilder filterBuilder)
A query that applies a filter to the results of another query.
|
static FunctionScoreQueryBuilder |
QueryBuilders.functionScoreQuery(QueryBuilder queryBuilder)
A query that allows to define a custom scoring function.
|
static FunctionScoreQueryBuilder |
QueryBuilders.functionScoreQuery(QueryBuilder queryBuilder,
FilterBuilder filterBuilder)
A query that allows to define a custom scoring function.
|
static FunctionScoreQueryBuilder |
QueryBuilders.functionScoreQuery(QueryBuilder queryBuilder,
FilterBuilder filterBuilder,
ScoreFunctionBuilder function)
A query that allows to define a custom scoring function.
|
static FunctionScoreQueryBuilder |
QueryBuilders.functionScoreQuery(QueryBuilder queryBuilder,
ScoreFunctionBuilder function)
A query that allows to define a custom scoring function.
|
static HasChildFilterBuilder |
FilterBuilders.hasChildFilter(String type,
QueryBuilder query)
Constructs a child filter, with the child type and the query to run against child documents, with
the result of the filter being the *parent* documents.
|
static HasChildQueryBuilder |
QueryBuilders.hasChildQuery(String type,
QueryBuilder query)
Constructs a new NON scoring child query, with the child type and the query to run on the child documents.
|
static HasParentFilterBuilder |
FilterBuilders.hasParentFilter(String parentType,
QueryBuilder query)
Constructs a parent filter, with the parent type and the query to run against parent documents, with
the result of the filter being the *child* documents.
|
static HasParentQueryBuilder |
QueryBuilders.hasParentQuery(String type,
QueryBuilder query)
Constructs a new NON scoring parent query, with the parent type and the query to run on the parent documents.
|
static IndicesQueryBuilder |
QueryBuilders.indicesQuery(QueryBuilder queryBuilder,
String... indices)
A query that will execute the wrapped query only for the specified indices, and "match_all" when
it does not match those indices.
|
BoolQueryBuilder |
BoolQueryBuilder.must(QueryBuilder queryBuilder)
Adds a query that must appear in the matching documents.
|
BoolQueryBuilder |
BoolQueryBuilder.mustNot(QueryBuilder queryBuilder)
Adds a query that must not appear in the matching documents.
|
BoostingQueryBuilder |
BoostingQueryBuilder.negative(QueryBuilder negativeQuery) |
static NestedFilterBuilder |
FilterBuilders.nestedFilter(String path,
QueryBuilder query) |
static NestedQueryBuilder |
QueryBuilders.nestedQuery(String path,
QueryBuilder query) |
IndicesQueryBuilder |
IndicesQueryBuilder.noMatchQuery(QueryBuilder noMatchQuery)
Sets the query to use when it executes on an index that does not match the indices provided.
|
ParsedQuery |
IndexQueryParserService.parse(QueryBuilder queryBuilder) |
BoostingQueryBuilder |
BoostingQueryBuilder.positive(QueryBuilder positiveQuery) |
static QueryFilterBuilder |
FilterBuilders.queryFilter(QueryBuilder queryBuilder)
A filter that simply wraps a query.
|
BoolQueryBuilder |
BoolQueryBuilder.should(QueryBuilder queryBuilder)
Adds a query that should appear in the matching documents.
|
static TopChildrenQueryBuilder |
QueryBuilders.topChildrenQuery(String type,
QueryBuilder query)
Constructs a new scoring child query, with the child type and the query to run on the child documents.
|
Constructor and Description |
---|
ConstantScoreQueryBuilder(QueryBuilder queryBuilder)
A query that wraps a query and simply returns a constant score equal to the
query boost for every document in the query.
|
FilteredQueryBuilder(QueryBuilder queryBuilder,
FilterBuilder filterBuilder)
A query that applies a filter to the results of another query.
|
HasChildFilterBuilder(String type,
QueryBuilder queryBuilder) |
HasChildQueryBuilder(String type,
QueryBuilder queryBuilder) |
HasParentFilterBuilder(String parentType,
QueryBuilder parentQuery) |
HasParentQueryBuilder(String parentType,
QueryBuilder parentQuery) |
IndicesQueryBuilder(QueryBuilder queryBuilder,
String... indices) |
NestedFilterBuilder(String path,
QueryBuilder queryBuilder) |
NestedQueryBuilder(String path,
QueryBuilder queryBuilder) |
QueryFilterBuilder(QueryBuilder queryBuilder)
A filter that simply wraps a query.
|
TopChildrenQueryBuilder(String type,
QueryBuilder queryBuilder) |
Modifier and Type | Class and Description |
---|---|
class |
FunctionScoreQueryBuilder
A query that uses a filters with a script associated with them to compute the
score.
|
Constructor and Description |
---|
FunctionScoreQueryBuilder(QueryBuilder queryBuilder)
Creates a function_score query that executes on documents that match query a query.
|
FunctionScoreQueryBuilder(QueryBuilder queryBuilder,
FilterBuilder filterBuilder)
Creates a function_score query that executes on documents that match query and filter.
|
Modifier and Type | Method and Description |
---|---|
T |
BaseInnerHitBuilder.setHighlighterQuery(QueryBuilder highlightQuery)
Sets a query to be used for highlighting all fields instead of the search query.
|
Modifier and Type | Method and Description |
---|---|
TopHitsBuilder |
TopHitsBuilder.setHighlighterQuery(QueryBuilder highlightQuery)
Sets a query to be used for highlighting all fields instead of the search query.
|
Modifier and Type | Method and Description |
---|---|
SearchSourceBuilder |
SearchSourceBuilder.query(QueryBuilder query)
Constructs a new search source builder with a search query.
|
Modifier and Type | Method and Description |
---|---|
static QueryFacetBuilder |
FacetBuilders.queryFacet(String facetName,
QueryBuilder query)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
QueryFacetBuilder |
QueryFacetBuilder.query(QueryBuilder query) |
Modifier and Type | Method and Description |
---|---|
InnerHitsBuilder.InnerHit |
InnerHitsBuilder.InnerHit.setQuery(QueryBuilder query)
Sets the query to run for collecting the inner hits.
|
Modifier and Type | Method and Description |
---|---|
HighlightBuilder |
HighlightBuilder.highlightQuery(QueryBuilder highlightQuery)
Sets a query to be used for highlighting all fields instead of the search query.
|
HighlightBuilder.Field |
HighlightBuilder.Field.highlightQuery(QueryBuilder highlightQuery)
Sets a query to use for highlighting this field instead of the search query.
|
Modifier and Type | Method and Description |
---|---|
static RescoreBuilder.QueryRescorer |
RescoreBuilder.queryRescorer(QueryBuilder queryBuilder) |
Constructor and Description |
---|
QueryRescorer(QueryBuilder builder)
Creates a new
QueryRescorer instance |
Copyright © 2009–2015. All rights reserved.