org.elasticsearch.index.query.json
Class MatchAllJsonQueryBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.json.BaseJsonQueryBuilder
      extended by org.elasticsearch.index.query.json.MatchAllJsonQueryBuilder
All Implemented Interfaces:
JsonQueryBuilder, QueryBuilder, ToJson

public class MatchAllJsonQueryBuilder
extends BaseJsonQueryBuilder

A query that matches on all documents.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.util.json.ToJson
ToJson.MapParams, ToJson.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.util.json.ToJson
EMPTY_PARAMS
 
Constructor Summary
MatchAllJsonQueryBuilder()
           
 
Method Summary
 MatchAllJsonQueryBuilder boost(float boost)
          Sets the boost for this query.
 void doJson(JsonBuilder builder, ToJson.Params params)
           
 MatchAllJsonQueryBuilder normsField(java.lang.String normsField)
          Field used for normalization factor (document boost).
 
Methods inherited from class org.elasticsearch.index.query.json.BaseJsonQueryBuilder
buildAsBytes, buildAsString, buildAsUnsafeChars, toJson
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchAllJsonQueryBuilder

public MatchAllJsonQueryBuilder()
Method Detail

normsField

public MatchAllJsonQueryBuilder normsField(java.lang.String normsField)
Field used for normalization factor (document boost). Defaults to no field.


boost

public MatchAllJsonQueryBuilder 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.


doJson

public void doJson(JsonBuilder builder,
                   ToJson.Params params)
            throws java.io.IOException
Specified by:
doJson in class BaseJsonQueryBuilder
Throws:
java.io.IOException