gpt4 book ai didi

solr - Solr 的 DatePointField 是 TrieDateField 的替代品吗?

转载 作者:行者123 更新时间:2023-12-03 23:53:49 26 4
gpt4 key购买 nike

我在 Solr 7.5 安装中收到了一些弃用警告:

[ WARN] 16:38:36  Solr loaded a deprecated plugin/analysis class [solr.TrieIntField]. Please consult documentation how to replace it accordingly. []
[ WARN] 16:38:36 Solr loaded a deprecated plugin/analysis class [solr.TrieFloatField]. Please consult documentation how to replace it accordingly. []
[ WARN] 16:38:36 Solr loaded a deprecated plugin/analysis class [solr.TrieLongField]. Please consult documentation how to replace it accordingly. []
[ WARN] 16:38:36 Solr loaded a deprecated plugin/analysis class [solr.TrieDoubleField]. Please consult documentation how to replace it accordingly. []
[ WARN] 16:38:36 Solr loaded a deprecated plugin/analysis class [solr.TrieDateField]. Please consult documentation how to replace it accordingly. []
[ WARN] 16:38:36 Solr loaded a deprecated plugin/analysis class [solr.LatLonType]. Please consult documentation how to replace it accordingly. []
[ WARN] 16:38:37 Solr loaded a deprecated plugin/analysis class [solr.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly. []
[ WARN] 16:38:37 Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly. []

documentation只是告诉我 Trie* 已被弃用,我无法找到除以下内容之外的迁移指南:
TrieDateField: Deprecated. Use DatePointField instead.

我可以只替换 Trie* 字段类型类并更新正在运行的 Solr 实例上的架构吗?

那么这里提到的非 Trie 字段呢?

最佳答案

它们是否是替代品取决于您的使用情况,但是是的,它们应该做同样的事情,只是更有效。但是,您必须在更改类型后重新索引 - 您不能只更改架构并假设现有数据将按您的预期工作(因为在执行迭代文档的操作时您最终会得到不同的数据类型)。

对于过滤器,它们已被替换为对应的 Graph(SynonymGraphFilter 和 WordDelimiterGraphFilter)。

LatLonType 已替换为 LatLonPointSpatialField。

您可以查看这些列表 changes in Major Changes in Solr 7 .

If you are using Trie* fields in your schema, you should consider moving to PointFields as soon as feasible. Changing to the new PointField types will require you to re-index your data.

关于solr - Solr 的 DatePointField 是 TrieDateField 的替代品吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52952007/

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