mirror of https://github.com/apache/lucene.git
LUCENE-4945: added some getters to CustomScoreQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1470816 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
16012cfd99
commit
383af5c085
|
@ -387,6 +387,16 @@ public class CustomScoreQuery extends Query {
|
||||||
this.strict = strict;
|
this.strict = strict;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** The sub-query that CustomScoreQuery wraps, affecting both the score and which documents match. */
|
||||||
|
public Query getSubQuery() {
|
||||||
|
return subQuery;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** The scoring queries that only affect the score of CustomScoreQuery. */
|
||||||
|
public Query[] getScoringQueries() {
|
||||||
|
return scoringQueries;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A short name of this query, used in {@link #toString(String)}.
|
* A short name of this query, used in {@link #toString(String)}.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue