# Manticore Search 10.1.0：Prometheus 集成、增强监控和重大改进

Manticore Search 10.1.0 引入了内置的 Prometheus 导出器，改进了监控功能，并带来了显著的稳定性增强

我们很兴奋地宣布发布 [Manticore Search 10.1.0](/install/)，该版本包含 2025 年 5 月的更新，为您的搜索体验带来更多可靠性与效率，包括内置的 Prometheus 集成、增强的监控功能和众多稳定性改进。

---

### ⚠️ 重要通知

从 10.1.0 版本开始，**CentOS 7 将不再受支持**。我们建议升级到受支持的操作系统以保持兼容性和安全性。基于 RHEL 10 的系统的支持目前正在开发中。

---

### 🛠️ 新功能和改进

此版本包含多项重大增强：

- **内置 Prometheus 导出器** ([Issue #537](https://github.com/manticoresoftware/manticoresearch-buddy/issues/537))：新增内置支持用于导出 Prometheus 指标，使监控和理解您的搜索系统更加容易。此功能之前仅作为独立项目提供：https://github.com/manticoresoftware/manticoresearch-prometheus。
- **KNN 索引管理** ([Issue #3409](https://github.com/manticoresoftware/manticoresearch/issues/3409))：新增 `ALTER TABLE tbl REBUILD KNN` 命令，便于在版本间迁移 KNN 索引。
- **增强的集群恢复** ([Issue #1894](https://github.com/manticoresoftware/manticoresearch/issues/1894))：通过定期保存 `seqno` 来改进集群恢复，加快崩溃后节点重启速度。

---

### 🔧 重要错误修复和稳定性改进

此版本解决了多个重要问题：

* **搜索和查询处理**：
   - 修复词形处理：用户定义的形式现在可以正确覆盖自动生成的形式
   - 修复了特定情况下的模糊匹配关键错误 ([PR #538](https://github.com/manticoresoftware/manticoresearch-buddy/pull/538))
   - 修复 SQL 与 JSON API 中分隔符的搜索结果不一致问题 ([Issue #3091](https://github.com/manticoresoftware/manticoresearch/issues/3091))
   - 修复了在分面搜索中 `json.field` 排序错误 ([Issue #3133](https://github.com/manticoresoftware/manticoresearch/issues/3133))
   - 修复了在复杂全文查询（公共子词）情况下的崩溃 ([Issue #3356](https://github.com/manticoresoftware/manticoresearch/issues/3356))
   - 修复了使用 JSON 属性过滤别名 `geodist()` 时的崩溃 ([Issue #3080](https://github.com/manticoresoftware/manticoresearch/issues/3080))

* **性能和资源管理**：
   - 通过将分布式表的 `DELETE FROM` 替换为 `TRUNCATE` 提高性能 ([Issue #2819](https://github.com/manticoresoftware/manticoresearch/issues/2819))
   - 增强自动磁盘块刷新：如果正在进行优化则跳过刷新 ([Issue #3195](https://github.com/manticoresoftware/manticoresearch/issues/3195))
   - 修复 RT 表中所有磁盘块的重复 ID 检查 ([Issue #3313](https://github.com/manticoresoftware/manticoresearch/issues/3313))
   - 修复索引期间信号 11 崩溃问题 ([Issue #3306](https://github.com/manticoresoftware/manticoresearch/issues/3306))
   - 修复与 `remove_repeats()` 相关的崩溃 ([Issue #3377](https://github.com/manticoresoftware/manticoresearch/issues/3377))
   - 修复创建带有 KNN 属性但没有模型的表时的崩溃

* **API 和集成**：
   - 添加对最新 Logstash 和 Beats 的支持 ([Issue #2400](https://github.com/manticoresoftware/manticoresearch/issues/2400))
   - 修复 Buddy HTTP 查询参数中的空格解码 ([Issue #3199](https://github.com/manticoresoftware/manticoresearch/issues/3199))
   - 在 JSON API 中添加对 `_random` 排序的支持 ([Issue #3132](https://github.com/manticoresoftware/manticoresearch/issues/3132))
   - 修复通过 JSON HTTP API 处理 uint64 文档 ID 的问题 ([Issue #3382](https://github.com/manticoresoftware/manticoresearch/issues/3382))
   - 修复 HTTP JSON 回复中字符串处理错误 ([Issue #3392](https://github.com/manticoresoftware/manticoresearch/issues/3392))
   - 修复非存在的 `@@variables` 总是返回 0 的问题 ([Issue #3109](https://github.com/manticoresoftware/manticoresearch/issues/3109))
   - 修复按 `id != value` 过滤时结果不正确的问题 ([Issue #3385](https://github.com/manticoresoftware/manticoresearch/issues/3385))

* **监控**：
   - 修复 `SHOW VERSION` 输出中的小问题
   - 修复磁盘块自动刷新错误信息中的拼写错误
   - 添加对 MCL 4.2.2 的支持；修复旧存储格式的错误 ([PR #3397](https://github.com/manticoresoftware/manticoresearch/pull/3397))

---

### 🔄 突破性变更

* **模糊搜索默认行为** ([Issue #540](https://github.com/manticoresoftware/manticoresearch-buddy/issues/540))：将模糊搜索中 `layouts` 参数的默认值更改为空字符串 (`''`)。

---

## 🚀 立即开始

升级到 **Manticore Search 10.1.0** 以利用这些新功能和改进。要查看完整的变更列表，请访问 [变更日志](https://manual.manticoresearch.com/Changelog)。

**我们很乐意听到您的反馈！**
- 在我们的 [社区论坛](https://forum.manticoresearch.com) 上参与讨论
- 在 [GitHub](https://github.com/manticoresoftware/manticoresearch/issues) 上报告问题或提出功能建议
- 在 [Slack](https://slack.manticoresearch.com) 上与我们聊天
- 直接通过 `contact@manticoresearch.com` 邮件联系我们
