Solr Elevation组件无法正常工作

时间:2015-10-28 08:22:20

标签: solr

以下是我https://wiki.apache.org/solr/QueryElevationComponent

的配置
<searchComponent name="elevator" class="solr.QueryElevationComponent" startup="lazy">
    <!-- pick a fieldType to analyze queries -->
    <str name="queryFieldType">string</str>
    <str name="config-file">elevate.xml</str>
  </searchComponent>

  <!-- A request handler for demonstrating the elevator component -->

  <requestHandler name="/elevate" class="solr.SearchHandler">
    <lst name="defaults">
      <str name="echoParams">explicit</str>
    </lst>
    <arr name="last-components">
      <str>elevator</str>
    </arr>
  </requestHandler>

实现提升的查询是

$HOST/solr/collection/elevate?q=*:*&wt=json&elevatedIds=34464

但是我没有看到34464的文件ID被提升。任何人都可以指出我的错误?

0 个答案:

没有答案