Hi,

Is there some profound reason why the defType is not passed onto the filter
query?

Both query and filterQuery are created inside the QueryComponent, however
differently:

QParser parser = QParser.getParser(rb.getQueryString(), defType, req);
QParser fqp = QParser.getParser(fq, null, req);

So the filter query parser will default to 'lucene' and besides local
params such as '{!regex}' the only way to force solr to use a different
parser is to override the lucene query parser in the solrconfig.xml

<queryParser name="lucene" class="solr.SomeOtherQParserPlugin" />

That doesn't seem right. Are there other options I missed?

If not, should the defType be passed to instantiate fqp?

Thanks,

  roman

Reply via email to