为什么SOLR的QueryElevation组件不起作用?

时间:2011-04-11 16:17:40

标签: solr elevation

我已将QueryElevation组件配置为:

http://wiki.apache.org/solr/QueryElevationComponent

我可以看到它正在做某事......

在调试(格式化为JSON)输出中:

 "debug":{
  "queryBoosting":{
    "q":"bar",
    "match":["id:test"]},

但是,它对查询结果无论

没有任何影响

谁能告诉我哪里出错?

谢谢!

1 个答案:

答案 0 :(得分:0)

好的,我的坏。

我将错误的字段设置为UniqueKey:

http://wiki.apache.org/solr/SchemaXml#The_Unique_Key_Field