Example usage for org.apache.solr.search StrParser StrParser

List of usage examples for org.apache.solr.search StrParser StrParser

Introduction

In this page you can find the example usage for org.apache.solr.search StrParser StrParser.

Prototype

public StrParser(String val) 

Source Link

Usage

From source file:org.tallison.solr.search.QueryEqualityTest.java

License:Apache License

/**
 * the function name for val parser coverage checking is extracted from
 * the first input//from   w w  w .  j  a v  a 2s.com
 * @see #assertQueryEquals
 * @see #testParserCoverage
 */
protected void assertFuncEquals(final SolrQueryRequest req, final String... inputs) throws Exception {
    // pull out the function name
    final String funcName = (new StrParser(inputs[0])).getId();
    valParsersTested.add(funcName);

    assertQueryEquals(FunctionQParserPlugin.NAME, req, inputs);
}