# Manticore Search 13.6.7: OR Operator Support, Distributed Table Joins, and Bug Fixes

Manticore Search 13.6.7 brings explicit OR operator support, distributed table joins, and over 15 critical bug fixes for better integration compatibility

我们很高兴发布 [Manticore Search 13.6.7](/install/)，该版本包含了我们在 **2025 年 7 月**完成的工作。此版本新增了 **搜索查询中的显式 OR 操作符支持、分布式表连接功能，并包含多个提升集成兼容性的错误修复**。

---

## 显式 OR 操作符支持

Manticore Search 13.6.7 在 PHRASE、PROXIMITY 和 QUORUM 操作符中新增了 **显式 `|` (OR) 操作符支持**。这允许：

- 在短语和邻近搜索中使用 `|` 语法
- 提供更灵活的查询构建选项
- 在复杂查询中更精确地控制术语匹配

此功能解决了用户对高级搜索操作符中更明确 OR 语法的需求。

示例：
```sql
mysql> SELECT * FROM phrase_or_demo WHERE MATCH('"(happy | sad | angry) customer"');
--------------
SELECT * FROM phrase_or_demo WHERE MATCH('"(happy | sad | angry) customer"')
--------------

+------+---------------------------+---------------------------------------------------+------------+
| id   | title                     | content                                           | category   |
+------+---------------------------+---------------------------------------------------+------------+
|    2 | Sad Customer Feedback     | I am a very sad customer with poor experience     | reviews    |
|    4 | Angry Customer Complaint  | I am an angry customer demanding refund           | complaints |
|    1 | Happy Customer Review     | I am a very happy customer with excellent service | reviews    |
|   10 | Customer Happy Experience | The happy customer left positive feedback         | feedback   |
+------+---------------------------+---------------------------------------------------+------------+
4 rows in set (0.00 sec)
```

---

## 分布式表连接

13.6.7 版本新增了 **与本地分布式表连接的支持**：

- 连接操作现在支持本地分布式表
- 支持分布式配置中的多表查询
- 启用分布式设置中的跨表操作

此功能允许使用分布式表配置的用户执行之前不支持的连接操作。

示例：
```sql
mysql> desc all_orders;
--------------
desc all_orders
--------------

+--------------+-------+
| Agent        | Type  |
+--------------+-------+
| orders_north | local |
| orders_south | local |
+--------------+-------+
2 rows in set (0.00 sec)

mysql> desc all_customers;
--------------
desc all_customers
--------------

+-----------------+-------+
| Agent           | Type  |
+-----------------+-------+
| customers_north | local |
| customers_south | local |
+-----------------+-------+
2 rows in set (0.00 sec)

mysql> SELECT all_customers.name, all_customers.email, SUM(amount) total_spent, COUNT(*) order_count FROM all_orders INNER JOIN all_customers ON all_orders.customer_id = all_customers.id WHERE amount > 50 GROUP BY all_customers.id, all_customers.name, all_customers.email HAVING total_spent > 200 ORDER BY total_spent DESC
--------------

+--------------------+---------------------+-------------+-------------+
| all_customers.name | all_customers.email | total_spent | order_count |
+--------------------+---------------------+-------------+-------------+
| Alice Johnson      | alice@email.com     | 1224.989990 |           3 |
| Carol Davis        | carol@email.com     |  419.989990 |           2 |
| David Wilson       | david@email.com     |  350.000000 |           1 |
+--------------------+---------------------+-------------+-------------+
3 rows in set (0.00 sec)
```

---

## 错误修复与改进

此版本包含 **超过 15 个错误修复**，解决了各种问题：

### 集成改进
- 修复了与 **Sequel Ace** 和 **DBeaver** 的兼容性问题（解决了 "unknown sysvar" 错误）
- 改进了数据库管理工具和第三方集成的支持

### 核心搜索修复
- 修复了短语搜索中括号内关键词丢失的问题
- 为全文解析添加了模糊测试并解决了可能导致内存泄漏或崩溃的诸多问题

### 向量搜索修复
- 修复了使用 KNN 数据时 OPTIMIZE TABLE 挂起的问题
- 修复了添加 float_vector 列时索引损坏的问题

### 其他修复
- 修复了复杂布尔过滤器与高亮功能结合时的崩溃问题
- 修复了分布式表与复制集群交互的问题
- 修复了长令牌和正则表达式模式的处理问题

---

## 兼容性说明

此版本与现有安装保持 **完全的向后兼容性**：

- **标准使用场景无破坏性变更**
- **可无缝升级** 13.x 的早期版本
- **遵循官方安装指南时会自动更新依赖项**

所有新功能均设计为与现有功能无缝协作。

---

## 升级信息

要升级到 Manticore Search 13.6.7，请遵循 [安装说明](/install/)。

**需要帮助或想分享反馈？**

- 在 [Slack](https://slack.manticoresearch.com) 加入我们的社区
- 在 [论坛](https://forum.manticoresearch.com) 参与讨论
- 在 [GitHub](https://github.com/manticoresoftware/manticoresearch/issues) 上报告问题或提出功能建议
- 直接通过 `contact@manticoresearch.com` 邮件联系我们

如需了解所有变更的完整详情，请查看 [完整变更日志](https://manual.manticoresearch.com/Changelog)。
