org.elasticsearch.index.query
Class CustomBoostFactorQueryBuilder
java.lang.Object
org.elasticsearch.index.query.BaseQueryBuilder
org.elasticsearch.index.query.CustomBoostFactorQueryBuilder
- All Implemented Interfaces:
- ToXContent, QueryBuilder
public class CustomBoostFactorQueryBuilder
- extends BaseQueryBuilder
A query that simply applies the boost factor to another query (multiply it).
CustomBoostFactorQueryBuilder
public CustomBoostFactorQueryBuilder(QueryBuilder queryBuilder)
- A query that simply applies the boost factor to another query (multiply it).
- Parameters:
queryBuilder
- The query to apply the boost factor to.
boostFactor
public CustomBoostFactorQueryBuilder boostFactor(float boost)
- Sets the boost factor for this query.
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.