【问题标题】:Can I change Schema.xml file structure after starting the index in solr?我可以在 solr 中启动索引后更改 Schema.xml 文件结构吗?
【发布时间】:2011-08-27 23:09:09
【问题描述】:

我已经配置了 solr,现在我在 Schema.xml 中使用了两个文件:

  • file_id
  • 内容

开始索引后,我已经索引了大约 1000 条记录,现在我想 在 Schema.xml 中添加更多字段。

是否可以在不影响索引数据的情况下更新当前的 Schema.xml 文件?

【问题讨论】:

标签: solr solrnet


【解决方案1】:

在任何情况下,您都必须重新启动 solr/lucene 实例。如果您在 schema.xml 中添加新字段(这意味着:lucene 将提供更多/新信息),您必须刷新/重建索引。

【讨论】:

    猜你喜欢
    • 2014-10-07
    • 1970-01-01
    • 2015-01-04
    • 1970-01-01
    • 2013-10-21
    • 2012-01-25
    • 2020-04-21
    • 2016-03-10
    • 1970-01-01
    相关资源
    最近更新 更多