简体   繁体   English

如何使用solrconfig.xml在solr中进行索引时间归档提升

[英]how to do index time filed boost in solr using solrconfig.xml

I am new to solr . 我是solr新手。 Currently we are using solr 4.8.0 . 当前,我们正在使用solr 4.8.0 We have already done indexing, created fields, field types. 我们已经完成了索引编制,创建了字段,字段类型。 Now I want to boost some of the fields using index time boosting. 现在,我想使用索引时间增强来增强某些字段。 Does this have to be done in solrconfig.xml ? 是否必须在solrconfig.xml完成? What are the tags and syntax? 标签和语法是什么?

Index time boosts are applied for each field when the document is submitted to the index. 当文档提交到索引时,索引时间提升适用于每个字段。 You can either apply the boost to hits in a specific field or for the document as the whole (which would apply the same boost to all fields). 您可以将增强应用于特定字段中的匹配,也可以应用于整个文档(这将对所有字段应用相同的增强)。

Example from the wiki : 来自Wiki的示例

<add>
  <doc boost="2.5">
    <field name="employeeId">05991</field>
    <field name="office" boost="2.0">Bridgewater</field>
  </doc>
</add>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM