You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2013/07/03 02:53:20 UTC
[jira] [Commented] (SOLR-4457) Queries ending in question mark
interpreted as wildcard
[ https://issues.apache.org/jira/browse/SOLR-4457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13698461#comment-13698461 ]
Jan Høydahl commented on SOLR-4457:
-----------------------------------
Any comments on this? First implementation could be a new eDismax config parameter {{maskTrailingQmark}}. If set to true (default=false) then a trailing "?" would be removed - but only if query consists of 3 or more terms.
This would be a simple fix until we get more flexible QParsers which could allow this as pluggable extensions for all parsers.
> Queries ending in question mark interpreted as wildcard
> -------------------------------------------------------
>
> Key: SOLR-4457
> URL: https://issues.apache.org/jira/browse/SOLR-4457
> Project: Solr
> Issue Type: Improvement
> Components: query parsers
> Reporter: Jan Høydahl
> Attachments: SOLR-4457.patch
>
>
> For many search applications, queries ending in a question mark such as {{foo bar?}} would *not* mean a search for a four-letter word starting with {{bar}}. Neither will it mean a literal search for a question mark.
> The query parsers should have an option to discard trailing question mark before passing to analysis.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org