Hi,

I have found what I think is an inconsistent behaviour of the query parser
when using the pf parameter.

I am testing with the techproducts collection in Solr v9.2.1,
defType=edismax, pf=text name

a) Query= name:george AND (game AND thrones)
Result= "parsedquery_toString":"+(+name:george +(+(text:game)
+(text:thrones))) (text:\"game thrones\" | name:\"game thrones\")"

b) Query= name:(george AND martin) AND (game AND thrones)
Result= "parsedquery_toString":"+(+(+name:george +name:martin)
+(+(text:game) +(text:thrones))) (text:\"*martin* game thrones\" | name:\"
*martin* game thrones\")"

I understand why in query a) pf is only applied to keywords *game *and *thrones
(*keywords in the query with no explicit field assigned), but following the
same reasoning, I would expect the same behaviour for query b) and that is
not the case (and it works as I expected for the parameter qf). Any idea
why this happens?

Best,

Mónica

-- 
Disclaimer: This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they 
are
addressed. If you have received this email in error please notify the 
system manager. If you are not the named addressee you should not 
disseminate,
distribute or copy this email. Please notify the sender 
immediately by email if you have received this email by mistake and delete 
this email from your
system.

Reply via email to