Package org.elasticsearch.index.query
package org.elasticsearch.index.query
-
InterfaceDescriptionQueryParser<QB extends QueryBuilder>Defines a query parser that is able to parse
QueryBuilder
s fromXContent
.Rewriteable<T>A basic interface for rewriteable classes.Marker interface for a specific type ofQueryBuilder
that allows to build span queries. -
ClassDescriptionAbstractGeometryQueryBuilder<QB extends AbstractGeometryQueryBuilder<QB>>Base
QueryBuilder
that builds a Geometry Querylocal class that encapsulates xcontent parsed shape parametersAbstractQueryBuilder<QB extends AbstractQueryBuilder<QB>>Base class for all classes producing lucene queries.BaseTermQueryBuilder<QB extends BaseTermQueryBuilder<QB>>A Query that matches documents matching boolean combinations of other queries.The BoostingQuery class can be used to effectively demote results that match a given query.A query that matches on multiple text fields, as if the field contents had been indexed into a single combined field.Deprecated.Since max_optimization optimization landed in 7.0, normal MatchQuery will achieve the same result without any configuration.A query that wraps a filter and simply returns a constant score equal to the query boost for every document in the filter.Context object used to rewriteQueryBuilder
instances into simplified version in the coordinator.A simple wrapper class that indicates that the wrapped query has made use of NOW when parsing its datemath.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.A query to boost scores based on their proximity to the given origin for date, date_nanos and geo_point field typesConstructs a query that only match on documents that the field has a value in them.A Query that does fuzzy matching for a specific value.Creates a Lucene query that will filter for all documents that lie within the specified bounding box.Filter results of a query to include only those within a specific distance to some geo point.Deprecated.DerivedAbstractGeometryQueryBuilder
that builds a lat, lon GeoShape Query.A query that will return only documents matching specific ids (and a type).A builder forInnerHitsContext.InnerHitSubContext
Constructs an IntervalsSource based on analyzed textBase class for scripts used as interval filters, seeIntervalsSourceProvider.IntervalFilter
Builder forIntervalQuery
Factory class forIntervalsSource
Built-in sources includeIntervalsSourceProvider.Match
, which analyzes a text string and converts it to a proximity source (phrase, ordered or unordered depending on how strict the matching should be);IntervalsSourceProvider.Combine
, which allows proximity queries between different sub-sources; andIntervalsSourceProvider.Disjunction
.A query that matches on all documents.The boolean prefix query analyzes the input text and creates a boolean query containing a Term query for each term, except for the last term, which is used to create a prefix queryA query that matches no document.Match query is a query that analyzes the text and constructs a phrase prefix query as the result of the analysis.Match query is a query that analyzes the text and constructs a phrase query as the result of the analysis.Match query is a query that analyzes the text and constructs a query as the result of the analysis.A more like this query that finds documents that are "like" the provided set of document(s).A single item to be used for aMoreLikeThisQueryBuilder
.Same asMatchQueryBuilder
but supports multiple fields.The result of parsing a query.A Query that matches documents containing terms with a specified prefix.Utility class to create search queries.Context object used to rewriteQueryBuilder
instances into simplified version.A query that parses a query string and runs it.A Query that matches documents within an range of terms.A Query that does fuzzy matching for a specific value.The context used to execute a search request on a shard.A predicate that checks whether an index pattern matches the current search shard target.SimpleQuery is a query parser that acts similar to a query_string query, but won't throw exceptions for any weird string syntax.Builder forSpanContainingQuery
.Query that allows wrapping aMultiTermQueryBuilder
(one of wildcard, fuzzy, prefix, term, range or regexp query) as aSpanQueryBuilder
so it can be nested.Matches spans which are near one another.SpanGapQueryBuilder enables gaps in a SpanNearQuery.Span query that matches the union of its clauses.A Span Query that matches documents containing a term.Builder forSpanWithinQuery
.A Query that matches documents containing a term.A filter for a field based on several terms matching on any of them.Implements the wildcard search query.A Query builder which allows building a query given JSON string or binary data provided as input. -
Enum ClassDescriptionSpecifies how a geo query should be run.This enum is used to determine how to deal with invalid geo coordinates in geo related queries: On STRICT validation invalid coordinates cause an exception to be thrown.Regular expression syntax flags.Flags for the XSimpleQueryString parser
-
ExceptionDescriptionException that is thrown when creating lucene queries on the shardThis exception can be used to indicate various reasons why validation of a query has failed.