# Manticore Search 3.1.0 版本发布

我们很高兴地宣布 Manticore Search 3.1.0 的发布。下载地址为 [here](https://manticoresearch.com/downloads/) 和 [Manticore Github 页面](https://github.com/manticoresoftware/manticoresearch/releases/tag/3.1.0)。Docker 镜像可在 [Docker Hub](https://hub.docker.com/r/manticoresearch/manticore) 获取。

### 新功能

* [复制](https://docs.manticoresearch.com/latest/html/replication.html) 现在可用于实时索引，并且与过滤索引的工作方式相同。
* 现在可以在复制的 RT 索引上使用 INSERT / REPLACE / DELETE 和 UPDATE 语句。ALTER 和 ATTACH 语句的支持将在未来版本中添加，OPTIMIZE 仅在本地执行优化。
* 复制现在支持多个语句事务，之前仅支持单个语句提交。
* 引入了基于开源 [ICU](https://docs.manticoresearch.com/latest/html/conf_options_reference/index_configuration_options.html#morphology) 库的新 [形态](http://site.icu-project.org/) 处理器。目前仅支持中文。中文 ICU 处理器将取代非开源的 RLP 处理器。

### 改进

* 我们对负责不同任务（如刷新）的线程唤醒机制进行了内部重构。新更改应导致空闲 CPU 使用率降低。
* 新增了 [icu_data_dir](https://docs.manticoresearch.com/latest/html/conf_options_reference/common_section_configuration_options.html#icu-data-dir) 指令，用于在手动编译 ICU 时指定 ICU 文件。
* 引入了 [LAST_INSERT_ID()](https://docs.manticoresearch.com/latest/html/searching/expressions,_functions,_and_operators.html#expr-func-last-insert-id) 函数，返回当前会话中最后修改的文档 ID。替代地，变量 [@@session.last_insert_id](https://docs.manticoresearch.com/latest/html/sphinxql_reference/set_syntax.html) 也可以返回最后修改的文档 ID。
* [SHOW VARIABLES](https://docs.manticoresearch.com/latest/html/sphinxql_reference/show_variables_syntax.html) 语句支持 `LIKE 'pattern'` 子句。
* 对于过滤索引，INSERT 现在可以接受多个存储的查询文档，之前每个语句只能接受一个存储的查询文档。
* 表达时间的配置指令现在可以接受 [字符串时间表达式](https://docs.manticoresearch.com/latest/html/getting-started/configuration.html#special-suffixes)。例如 `rt_flush_period = 3600` 可以重写为 `rt_flush_period = 60m` 或 `rt_flush_period = 1h`。
* 可以通过 [access_doclists](https://docs.manticoresearch.com/latest/html/conf_options_reference/index_configuration_options.html#access-doclists) 和 [access_hitlists](https://docs.manticoresearch.com/latest/html/conf_options_reference/index_configuration_options.html#access-hitlists) 指令使用新的 'mlock' 值来锁定文档和命中列表。
* 片段路径现在在 [snippets_file_prefix](https://docs.manticoresearch.com/latest/html/conf_options_reference/searchd_program_configuration_options.html#snippets-file-prefix) 的作用域内被限制，即使路径是相对路径也是如此。

### 移除

* 移除了 RLP 处理器的支持。所有 rlp_* 配置指令已被移除。
* UPDATE 语句不再支持更新文档 ID 的值。

### 修复

此版本包含多项修复，仅举几个例子：
- [58dcbb77](https://github.com/manticoresoftware/manticoresearch/commit/58dcbb779c4c30ca1560460c78e35ba114b83716) 修复了 [#246](https://github.com/manticoresoftware/manticoresearch/issues/246) 索引器中未定义的 sigmask
- [44757711](https://github.com/manticoresoftware/manticoresearch/commit/447577115192db7ac7bfea70b5ba58ee2c61229f) 修复了复制中集群锁的哈希
- [f0472223](https://github.com/manticoresoftware/manticoresearch/commit/f047222339fd0e62a07e9ca8b2a829297d5db861) 修复了 concat 和 group_concat 中的缺陷

如需完整报告，请参阅 [版本说明](https://docs.manticoresearch.com/latest/html/releasenotes.html#version-3-1-0-16-july-2019)。
