[
https://issues.apache.org/jira/browse/SOLR-7873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14658362#comment-14658362
]
Erik Hatcher commented on SOLR-7873:
------------------------------------
The \{!prefix} query parser works only with individual _terms_, so generally
prefixes won't span words (like the whitespace in the issue description between
"radar" and "c"). Prefix values are taken literally as the start of a single
term to match; and relies on the field analysis definition to control what
makes terms that are prefix-able. In other words, this is working as
designed. You may get what you are looking for using the \{!complexphrase}
query parser instead.
> prefix query parser fails with two words and a second field
> -----------------------------------------------------------
>
> Key: SOLR-7873
> URL: https://issues.apache.org/jira/browse/SOLR-7873
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.8
> Reporter: Randy Jacobsen
> Priority: Minor
>
> works: {!prefix f=journal_name}radar c
> works: pub_name:5 AND {!prefix f=journal_name}radar
> fails: pub_name:5 AND {!prefix f=journal_name}radar c
> both fields are lowercased text fields
> fail results in 0 matches
> any equivalent queries would be welcome
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]