org.elasticsearch.index.query
Class FieldMaskingSpanQueryBuilder
java.lang.Object
org.elasticsearch.index.query.BaseQueryBuilder
org.elasticsearch.index.query.FieldMaskingSpanQueryBuilder
- All Implemented Interfaces:
- ToXContent, BoostableQueryBuilder<FieldMaskingSpanQueryBuilder>, QueryBuilder, SpanQueryBuilder
public class FieldMaskingSpanQueryBuilder
- extends BaseQueryBuilder
- implements SpanQueryBuilder, BoostableQueryBuilder<FieldMaskingSpanQueryBuilder>
FieldMaskingSpanQueryBuilder
public FieldMaskingSpanQueryBuilder(SpanQueryBuilder queryBuilder,
String field)
boost
public FieldMaskingSpanQueryBuilder 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<FieldMaskingSpanQueryBuilder>
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.