Skip to content

Commit

Permalink
Use new QParser.getParser with default (apache#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Nilsson authored and diegoceccarelli committed Aug 22, 2016
1 parent c530fa7 commit 83f5306
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public SolrFeatureWeight(IndexSearcher searcher,
for (String fq : fqs) {
if ((fq != null) && (fq.trim().length() != 0)) {
fq = macroExpander.expand(fq);
final QParser fqp = QParser.getParser(fq, null, req);
final QParser fqp = QParser.getParser(fq, req);
final Query filterQuery = fqp.getQuery();
if (filterQuery != null) {
queryAndFilters.add(filterQuery);
Expand All @@ -142,7 +142,7 @@ public SolrFeatureWeight(IndexSearcher searcher,
}
}

final QParser parser = QParser.getParser(solrQuery, null, req);
final QParser parser = QParser.getParser(solrQuery, req);
query = parser.parse();

// Query can be null if there was no input to parse, for instance if you
Expand Down

0 comments on commit 83f5306

Please sign in to comment.