public class BoostedQuery extends Object implements Query
Query, but giving to each matching document a boosted score (scores are multiplied).Query.LogicalOperator, Query.Operator| Modifier and Type | Field and Description |
|---|---|
private float |
_boost |
private Query |
_query |
| Constructor and Description |
|---|
BoostedQuery(Query query,
float boost)
Build a BoostedQuery object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString(int indent)
Gets a representation of this
Query, for pretty-printing for logging and debugging purposes |
public BoostedQuery(Query query, float boost)
query - The wrapped queryboost - The boostpublic String build() throws QuerySyntaxException
Querybuild in interface QueryQuerySyntaxException - if the query can't be built because of a syntax error.public String toString(int indent)
QueryQuery, for pretty-printing for logging and debugging purposes