mirror of https://github.com/apache/lucene.git
SOLR-9786: set filter flag for more parsers
This commit is contained in:
parent
21735161dc
commit
3b4cc1bd1f
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue