gpt4 book ai didi

solr 文本索引为文本数组

转载 作者:行者123 更新时间:2023-12-05 01:46:10 25 4
gpt4 key购买 nike

我试图在 solr 6.0.0 中索引以下文档:

{
"content_t":"A bunch of content"
}

它的索引为:

{
"content_t":["A bunch of content"]
}

我该怎么办?

最佳答案

您必须为字段 content_t 添加属性 multivalued = true

多值 字段在字段有多个值时很有用。由于您不想以多值形式存储相同内容,因此删除相同字段的属性。

删除它并重新启动服务器。

重新索引数据。

关于solr 文本索引为文本数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37042732/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com