You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Weaviate中如何更新现有类的invertedIndexConfig?PUT端点可行吗?

Weaviate 修改invertedIndexConfig.indexNullState 的正确方法
  • PUT /v1/schema/{class_name} 端点无法完成你需要的操作。这个端点仅支持修改类的少数非核心配置(比如类的描述、vectorizer设置等),像invertedIndexConfig这类索引相关的核心配置不在其可修改范围内。你收到的报错信息虽然提到了properties,但本质是该端点的更新权限有限,不支持修改索引规则类的配置项。

  • 要实现indexNullState: true的配置,唯一可行的方式是:

    1. 先删除现有的目标类(注意:删除会清空该类下的所有数据,操作前请做好备份)
      curl -X DELETE http://localhost:8080/v1/schema/YourClassName
      
    2. 重新创建该类,并在schema定义中明确设置invertedIndexConfig.indexNullState: true
      curl -X POST http://localhost:8080/v1/schema \
      -H "Content-Type: application/json" \
      -d '{
        "class": "YourClassName",
        "invertedIndexConfig": {
          "indexNullState": true
        },
        "properties": [
          // 这里填写你原有的属性定义
        ]
      }'
      

内容的提问来源于stack exchange,提问作者junbetterway

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.17 10:17:10