ITADN

N of docs doesn't change in attached table

#4514Closedklirichek 创建于 2026-04-24
bug
K
klirichekcommented
### Bug Description: ```mysql manticore> create table test1 (t text); Query OK, 0 rows affected (0,011 sec) manticore> create table test2 (t text); Query OK, 0 rows affected (0,003 sec) manticore> insert into test1 values (1, 'test'),(2, 'test'),(3, 'test'),(4, 'test'),(5, 'test'); Query OK, 5 rows affected (0,005 sec) manticore> insert into test2 values (10, 'test'); Query OK, 1 row affected (0,001 sec) manticore> show index test1 status like '%documents'; +-------------------+-------+ | Variable_name | Value | +-------------------+-------+ | indexed_documents | 5 | | killed_documents | 0 | +-------------------+-------+ 2 rows in set (0,001 sec) manticore> select count(*) from test1; +----------+ | count(*) | +----------+ | 5 | +----------+ 1 row in set (0,001 sec) manticore> ATTACH TABLE test1 TO TABLE test2; Query OK, 0 rows affected (0,022 sec) manticore> show index test1 status like '%documents'; +-------------------+-------+ | Variable_name | Value | +-------------------+-------+ | indexed_documents | 5 | | killed_documents | 0 | +-------------------+-------+ 2 rows in set (0,000 sec) manticore> select count(*) from test1; +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (0,001 sec) ``` ### Manticore Search Version: 25.7.5 ### Operating System Version: any ### Have you tried the latest development version? None ### Internal Checklist: <sup>To be completed by the assignee. Check off tasks that have been completed or are not applicable.</sup> <details> - [x] Implementation completed - [x] Tests developed - [x] Documentation updated - [x] Documentation reviewed </details>
关闭于 2026-04-26 0 条评论