use of org.apache.lucene.queryparser.flexible.standard.CommonQueryParserConfiguration in project lucene-solr by apache.
the class QueryParserTestBase method getQueryDOA.
public Query getQueryDOA(String query, Analyzer a) throws Exception {
if (a == null)
a = new MockAnalyzer(random(), MockTokenizer.SIMPLE, true);
CommonQueryParserConfiguration qp = getParserConfig(a);
setDefaultOperatorAND(qp);
return getQuery(query, qp);
}
Aggregations