Building Queriesedit

This page lists all the available search queries with their corresponding QueryBuilder class name and helper method name in the QueryBuilders utility class.

Match All Queryedit

Search QueryQueryBuilder ClassMethod in QueryBuilders

Match All

MatchAllQueryBuilder

QueryBuilders.matchAllQuery()

Specialized queriesedit

Search QueryQueryBuilder ClassMethod in QueryBuilders

More Like This

MoreLikeThisQueryBuilder

QueryBuilders.moreLikeThisQuery()

Script

ScriptQueryBuilder

QueryBuilders.scriptQuery()

Percolate

PercolateQueryBuilder

 

Wrapper

WrapperQueryBuilder

QueryBuilders.wrapperQuery()

Rank Feature

{mapper-extras-client-javadoc}/org/elasticsearch/index/query/RankFeatureQuery.html[RankFeatureQueryBuilder]

 

Pinned Query

The PinnedQueryBuilder is packaged as part of the xpack-core module