SOLR-9786: set filter flag for more parsers

This commit is contained in:
yonik 2016-11-22 16:30:08 -05:00
parent 21735161dc
commit 3b4cc1bd1f
2 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,7 @@ public abstract class FacetProcessor<FacetRequestT extends FacetRequest> {
QParser parser = null;
try {
parser = QParser.getParser((String)rawFilter, fcontext.req);
parser.setIsFilter(true);
Query symbolicFilter = parser.getQuery();
qlist.add(symbolicFilter);
} catch (SyntaxError syntaxError) {
@ -134,6 +135,7 @@ public abstract class FacetProcessor<FacetRequestT extends FacetRequest> {
QParser parser = null;
try {
parser = QParser.getParser((String) qstring, fcontext.req);
parser.setIsFilter(true);
Query symbolicFilter = parser.getQuery();
qlist.add(symbolicFilter);
} catch (SyntaxError syntaxError) {
@ -237,6 +239,7 @@ public abstract class FacetProcessor<FacetRequestT extends FacetRequest> {
Query parentQuery;
try {
QParser parser = QParser.getParser(parentStr, fcontext.req);
parser.setIsFilter(true);
parentQuery = parser.getQuery();
} catch (SyntaxError err) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "Error parsing block join parent specification: " + parentStr);

View File

@ -568,6 +568,7 @@ class FacetQueryParser extends FacetParser<FacetQuery> {
if (qstring != null) {
QParser parser = QParser.getParser(qstring, getSolrRequest());
parser.setIsFilter(true);
facet.q = parser.getQuery();
}