[
https://issues.apache.org/jira/browse/SOLR-15345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17322684#comment-17322684
]
Dawid Weiss commented on SOLR-15345:
------------------------------------
In reality there are many users that are in between naive (only using q queries
or some other frontend that does it for them) and advanced (using solr for full
access). This is an example of just that - a user who experiments with Solr
knobs and got trapped. He moved his query (solrconfig-preconfigured custom
query parser with enhanced functionality) into a filter and it stopped working
(in fact, it started throwing exceptions). I had to go all the way to Solr
sources to discover why it's the case...
I agree this is a major breaking change and I'm not sure how to solve it
perfectly but at the moment it is undefined gray area to me - the docs
certainly don't say a word about which query parser is used by default for fq
clauses. To me a solrconfig-default query parser should apply to filter queries
too... but even if I'm wrong then perhaps there should be a way to switch the
default globally for filter queries (defFqType?) so that it's less trappy for
folks and still backward compatible?
> filter queries (fq) ignore the default query parser (defType)
> -------------------------------------------------------------
>
> Key: SOLR-15345
> URL: https://issues.apache.org/jira/browse/SOLR-15345
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Dawid Weiss
> Priority: Major
>
> This would be a breaking change but is a good puzzler - if you're using a
> non-standard query parser (set up as default everywhere), filter queries
> completely ignore it. One can override locally via
> {code}fq={!type=...}...{code} but it seems like an obscure solution.
> See this code in QueryComponent:
> https://github.com/apache/solr/blob/b8b65ce5060e71ebca1f8acc16559ada41e5df77/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java#L160
> and for fq:
> https://github.com/apache/solr/blob/b8b65ce5060e71ebca1f8acc16559ada41e5df77/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java#L210
> Is this behavior intended?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]