SOLR df 和 qf 解释 [英] SOLR df and qf explanation

查看:45
本文介绍了SOLR df 和 qf 解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到这些查询参数如何相互作用的充分解释

I cannot find an adequeate explanation of how these query params interact

如果我指定

qf=title^20 description^10

然后我没有得到任何结果但是如果我再添加

then I get no results however if I then add

df=description

我确实得到了结果

df 设置为 solrconfig.xml 中的文本 - 这会改变 - 但我的问题是 - df 设置是否以某种方式覆盖了 qf 设置?这看起来很奇怪

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

推荐答案

df 是默认字段,只有在 qf 未定义时才会生效.

df is the default field and will only take effect if the qf is not defined.

我猜你没有使用 dismax 解析器,而是使用 solrconfig.xml 中的默认设置

I guess you are not using dismax parser and using the default settings in solrconfig.xml

qf 无论如何都不会生效,df 字段是 text 不会返回值.

qf then won't take effect anyways and the df field which is text would not return values.

df=description 搜索字段并因此返回值.尝试将 defType=edismax 作为参数传递.

df=description searches on the field and hence returns values. Try passing defType=edismax as parameter.

这篇关于SOLR df 和 qf 解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆