【问题标题】:solr difference between qf=text^1 and qf=content^1qf=text^1 和 qf=content^1 之间的区别
【发布时间】:2015-04-22 15:45:13
【问题描述】:

两者有什么区别

qf=text^1 

qf=content^1 

我目前的 solr qf 设置为:

<str name="qf">title^15.0 description^9.0 categoryNames^3.0 authorName^1.0 content^1.0</str>

只是想知道文本和内容之间是否存在任何重大差异。

架构定义:

<field name="content" type="text_en_splitting" indexed="true" stored="true" multiValued="true"/>
<field name="text" type="text_en_splitting" indexed="true" stored="false" multiValued="true"/>

【问题讨论】:

    标签: solr


    【解决方案1】:

    这两个字段之间的主要区别在于content 字段不存储而text 字段存储。

    要了解它的含义,您可以查看this post,它很好地解释了stored 字段和indexed 字段之间的区别。

    你也可以关注Solr's wiki

    【讨论】:

      【解决方案2】:

      文本和内容只是字段名称,因此从查询语言的角度来看,这两个表达式之间没有区别(除了您查询的是不同的字段)

      附带说明:提升 1 是没有意义的,因为 1(实际上是 1.0)是默认值

      【讨论】:

        猜你喜欢
        • 2022-10-01
        • 1970-01-01
        • 2020-04-01
        • 2013-06-26
        • 1970-01-01
        • 1970-01-01
        • 2020-02-01
        • 2019-04-27
        • 2018-05-05
        相关资源
        最近更新 更多