org.elasticsearch.index.query
Class SpanNearQueryBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.BaseQueryBuilder
      extended by org.elasticsearch.index.query.SpanNearQueryBuilder
All Implemented Interfaces:
ToXContent, BoostableQueryBuilder<SpanNearQueryBuilder>, QueryBuilder, SpanQueryBuilder

public class SpanNearQueryBuilder
extends BaseQueryBuilder
implements SpanQueryBuilder, BoostableQueryBuilder<SpanNearQueryBuilder>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
SpanNearQueryBuilder()
           
 
Method Summary
 SpanNearQueryBuilder boost(float boost)
          Sets the boost for this query.
 SpanNearQueryBuilder clause(SpanQueryBuilder clause)
           
 SpanNearQueryBuilder collectPayloads(boolean collectPayloads)
           
protected  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 SpanNearQueryBuilder inOrder(boolean inOrder)
           
 SpanNearQueryBuilder slop(int slop)
           
 
Methods inherited from class org.elasticsearch.index.query.BaseQueryBuilder
buildAsBytes, buildAsBytes, toString, toXContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.index.query.QueryBuilder
buildAsBytes, buildAsBytes
 
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
 

Constructor Detail

SpanNearQueryBuilder

public SpanNearQueryBuilder()
Method Detail

clause

public SpanNearQueryBuilder clause(SpanQueryBuilder clause)

slop

public SpanNearQueryBuilder slop(int slop)

inOrder

public SpanNearQueryBuilder inOrder(boolean inOrder)

collectPayloads

public SpanNearQueryBuilder collectPayloads(boolean collectPayloads)

boost

public SpanNearQueryBuilder boost(float boost)
Description copied from interface: BoostableQueryBuilder
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<SpanNearQueryBuilder>

doXContent

protected void doXContent(XContentBuilder builder,
                          ToXContent.Params params)
                   throws IOException
Specified by:
doXContent in class BaseQueryBuilder
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.