Java 类org.apache.lucene.search.function.ValueSourceQuery 实例源码

项目:opensearchserver    文件:RootExpression.java   
private ValueSourceQuery[] getValueSourceQueries() {
    ValueSourceQuery[] vsq = new ValueSourceQuery[functionValueSources
            .size()];
    int i = 0;
    for (FunctionValueSource fvs : functionValueSources)
        vsq[i++] = new ValueSourceQuery(fvs.valueSource);
    return vsq;
}
项目:opensearchserver    文件:ScoreFunctionQuery.java   
protected ScoreFunctionQuery(Query subQuery,
        ValueSourceQuery valueSourceQuery, Expression expression)
        throws SyntaxError {
    super(subQuery, valueSourceQuery);
    this.subQuery = subQuery;
    this.expression = expression;
}
项目:opensearchserver    文件:ScoreFunctionQuery.java   
protected ScoreFunctionQuery(Query subQuery,
        ValueSourceQuery[] valueSourceQueries, Expression expression)
        throws SyntaxError {
    super(subQuery, valueSourceQueries);
    this.subQuery = subQuery;
    this.expression = expression;
}
项目:opensearchserver    文件:RootExpression.java   
private ValueSourceQuery getValueSourceQuery() {
    return new ValueSourceQuery(functionValueSources.get(0).valueSource);
}