> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molesignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 配置字段索引

> 为数据流中已有字段配置索引行为。

```http theme={null}
PUT /api/v1/streams/{id}/settings
```

公共 API 不直接替换字段类型或追加 schema 字段；新字段通过摄取到达后，数据流 schema 会自动演进。对已有
字段的索引配置使用 settings 接口。

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT http://localhost:5080/api/v1/streams/$STREAM_ID/settings \
    -H "authorization: Bearer $MS_JWT" \
    -H 'content-type: application/json' \
    -d '{
      "fields": [
        {
          "name": "trace_id",
          "indexed": true,
          "index_type": "exact",
          "condition": null,
          "sdr_patterns": []
        }
      ]
    }'
  ```
</RequestExample>

支持的索引类型为 `none`、`exact`、`full_text`、`bloom` 和 `skip`。该操作需要
`streams.configure`。
