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:
David Wayne Smiley 2013-04-23 05:21:13 +00:00
parent 16012cfd99
commit 383af5c085
1 changed files with 10 additions and 0 deletions

View File

@ -387,6 +387,16 @@ public class CustomScoreQuery extends Query {
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)}.
*/