lucene-dev mailing list archives

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


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:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message