Thank you, Hoss. That answered my question.

On Wed, Nov 15, 2023, 1:08 PM Chris Hostetter <[email protected]>
wrote:

>
> :      Why does edismax query reset field exist query to *:*?  Is this
> : expected behavior or a bug?
> :
> :  Edismax query "q": "{!edismax qf=keywords v='*'}" or in the other
> : form "q=*&qf=keywords.en&defType=edismax"
> : I expected this to translate into keywords:*
>
> this is an intentional feature of the parser(s) because 99% of the time if
> a query string contained a bare '*' (w/o an explicit field, or used as a
> suffix on some term) people expect it to mean "match everything")...
>
> https://issues.apache.org/jira/browse/SOLR-2996
>
> if you had given edismax a query string of 'keywords:*' (and `keywords` is
> an allowed user field in the parser configuration) it would have treated
> it as a "field 'keywords' contains some term" query.  But because the '*'
> is bare both edismax and the lucene qparser treat it as the "match all
> docs" query regardless of what the respectic qf or df params are.
>
>
> -Hoss
> http://www.lucidworks.com/
>

Reply via email to