lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-4457) Queries ending in question mark interpreted as wildcard
Date Fri, 12 Jun 2015 08:11:01 GMT

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

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

Another option is perhaps to rewrite {{abcd?}} as {{(abcd OR abcd?^0)}} so that you'll both
match the word literally and get the wildcard match, but with lower rank. Then this could
be applied for all tokens in the input ending with {{?}}, not only the very last word. This
should ideally be done after parsing to avoid edismax falling back to boolean mode. At first
thought this feels a bit too complex - comments?

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message