SOLR df and qf explanation

心不动则不痛 提交于 2019-12-18 03:31:23

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!