[ 
https://issues.apache.org/jira/browse/SOLR-15345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17322675#comment-17322675
 ] 

Jan Høydahl commented on SOLR-15345:
------------------------------------

Content of filters are typically generated by the client app, while q is 
sourced from user input, so it makes perfect sense, doesn't it? If we changed 
it, people would need to change all their applications to say e.g. 
{{defType=dismax&q=<user text>&fq=\{!lucene}country:Norway}}. Of course, many 
apps already override the parser of filters, such as {{fq=\{!terms 
f=country}Norway,Sweden}}, which is probably the best approach. So I'd rather 
go in the direction of removing {{defType}} and let every single query be 
explicit of its parser :)

> 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: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to