Building Queries

edit

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 Query

edit
Search Query QueryBuilder Class Method in QueryBuilders

Match All

MatchAllQueryBuilder

QueryBuilders.matchAllQuery()

Specialized queries

edit
Search Query QueryBuilder Class Method 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