Search in sources :

Example 1 with FunctionQParser

use of org.apache.solr.search.FunctionQParser in project lucene-solr by apache.

the class FacetRangeParser method parseStringStat.

// parses avg(x)
private AggValueSource parseStringStat(String key, String stat) throws SyntaxError {
    FunctionQParser parser = (FunctionQParser) QParser.getParser(stat, FunctionQParserPlugin.NAME, getSolrRequest());
    AggValueSource agg = parser.parseAgg(FunctionQParser.FLAG_DEFAULT);
    return agg;
}
Also used : FunctionQParser(org.apache.solr.search.FunctionQParser)

Aggregations

FunctionQParser (org.apache.solr.search.FunctionQParser)1