org.elasticsearch.index.query.json
Class FilteredJsonQueryBuilder

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

public class FilteredJsonQueryBuilder
extends BaseJsonQueryBuilder

A query that applies a filter to the results of another query.


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
FilteredJsonQueryBuilder(JsonQueryBuilder queryBuilder, JsonFilterBuilder filterBuilder)
          A query that applies a filter to the results of another query.
 
Method Summary
 FilteredJsonQueryBuilder boost(float boost)
          Sets the boost for this query.
protected  void doJson(JsonBuilder builder, ToJson.Params params)
           
 
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

FilteredJsonQueryBuilder

public FilteredJsonQueryBuilder(JsonQueryBuilder queryBuilder,
                                JsonFilterBuilder filterBuilder)
A query that applies a filter to the results of another query.

Parameters:
queryBuilder - The query to apply the filter to
filterBuilder - The filter to apply on the query
Method Detail

boost

public FilteredJsonQueryBuilder 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

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