You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jack Krupansky (JIRA)" <ji...@apache.org> on 2013/02/14 15:34:13 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=13578397#comment-13578397 ]
Jack Krupansky commented on SOLR-4457:
--------------------------------------
I implemented this feature once for a Solr-based query parser. It can be tricky since you don't won't to preclude the use of a trailing single-character wildcard. You can read about the rules/heuristics I used here:
http://lucidworks.lucidimagination.com/display/lweug/Natural+Language+Queries
> 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
>
> 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