queryName

Sets the arbitrary name to be assigned to the query (see named queries).
Implementers should return the concrete type of the
QueryBuilder so that calls can be chained. This is done
automatically when extending AbstractQueryBuilder.

queryName

java.lang.String queryName()

Returns the arbitrary name assigned to the query (see named queries).

boost

float boost()

Returns the boost for this query.

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.
Implementers should return the concrete type of the
QueryBuilder so that calls can be chained. This is done
automatically when extending AbstractQueryBuilder.

getName

java.lang.String getName()

Returns the name that identifies uniquely the query

rewrite

Rewrites this query builder into its primitive form. By default this method return the builder itself. If the builder
did not change the identity reference must be returned otherwise the builder will be rewritten infinitely.

Throws:

java.io.IOException

rewriteQuery

Rewrites the given query into its primitive form. Queries that for instance fetch resources from remote hosts or
can simplify / optimize itself should do their heavy lifting during rewrite(QueryRewriteContext). This method
rewrites the query until it doesn't change anymore.