org.apache.lucene.search.function
public class ValueSourceQuery extends Query
ValueSource
.
The value source can be based on a (cached) value of an indexd field, but it can also be based on an external source, e.g. values read from an external database.
Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).
WARNING: The status of the search.function package is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.
Constructor Summary | |
---|---|
ValueSourceQuery(ValueSource valSrc)
Create a value source query |
Method Summary | |
---|---|
protected Weight | createWeight(Searcher searcher) |
boolean | equals(Object o) Returns true if o is equal to this. |
void | extractTerms(Set terms) |
int | hashCode() Returns a hash code value for this object. |
Query | rewrite(IndexReader reader) |
String | toString(String field) |
Parameters: valSrc provides the values defines the function to be used for scoring
o
is equal to this.