问题
I cannot find an adequeate explanation of how these query params interact
I am getting suprising (to me) results that if I specify
qf=title^20 description^10
then I get no results however if I then add
df=description
I do get results
df is set to text in solrconfig.xml - which will change - but my question is this - does the df setting somehow override the qf setting? this seems odd
回答1:
df
is the default field and will only take effect if the qf
is not defined.
I guess you are not using dismax parser and using the default settings in solrconfig.xml
qf
then won't take effect anyways and the df
field which is text
would not return values.
df=description
searches on the field and hence returns values.
Try passing defType=edismax
as parameter.
来源:https://stackoverflow.com/questions/17363677/solr-df-and-qf-explanation