Search in sources :

Example 1 with QParserPlugin

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

the class SOLR749Test method testConstruction.

public void testConstruction() throws Exception {
    SolrCore core = h.getCore();
    assertTrue("core is null and it shouldn't be", core != null);
    QParserPlugin parserPlugin = core.getQueryPlugin(QParserPlugin.DEFAULT_QTYPE);
    assertTrue("parserPlugin is null and it shouldn't be", parserPlugin != null);
    assertTrue("parserPlugin is not an instanceof " + FooQParserPlugin.class, parserPlugin instanceof FooQParserPlugin);
    ValueSourceParser vsp = core.getValueSourceParser("boost");
    assertTrue("vsp is null and it shouldn't be", vsp != null);
    assertTrue("vsp is not an instanceof " + DummyValueSourceParser.class, vsp instanceof DummyValueSourceParser);
}
Also used : ValueSourceParser(org.apache.solr.search.ValueSourceParser) FooQParserPlugin(org.apache.solr.search.FooQParserPlugin) QParserPlugin(org.apache.solr.search.QParserPlugin) FooQParserPlugin(org.apache.solr.search.FooQParserPlugin)

Aggregations

FooQParserPlugin (org.apache.solr.search.FooQParserPlugin)1 QParserPlugin (org.apache.solr.search.QParserPlugin)1 ValueSourceParser (org.apache.solr.search.ValueSourceParser)1