org.elasticsearch.index.query
Class MatchAllQueryBuilder
java.lang.Object
org.elasticsearch.index.query.BaseQueryBuilder
org.elasticsearch.index.query.MatchAllQueryBuilder
- All Implemented Interfaces:
- ToXContent, BoostableQueryBuilder<MatchAllQueryBuilder>, QueryBuilder
public class MatchAllQueryBuilder
- extends BaseQueryBuilder
- implements BoostableQueryBuilder<MatchAllQueryBuilder>
A query that matches on all documents.
MatchAllQueryBuilder
public MatchAllQueryBuilder()
normsField
public MatchAllQueryBuilder normsField(String normsField)
- Field used for normalization factor (document boost). Defaults to no field.
boost
public MatchAllQueryBuilder boost(float boost)
- Sets the boost for this query. Documents matching this query will (in addition to the normal
weightings) have their score multiplied by the boost provided.
- Specified by:
boost
in interface BoostableQueryBuilder<MatchAllQueryBuilder>
doXContent
public void doXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
doXContent
in class BaseQueryBuilder
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.