Skip to content

ext list values#4095

Merged
tomatolog merged 8 commits intomasterfrom
ext_list_values_wip
Jan 21, 2026
Merged

ext list values#4095
tomatolog merged 8 commits intomasterfrom
ext_list_values_wip

Conversation

@tomatolog
Copy link
Copy Markdown
Contributor

to run all CI stages and auto-translator

…t options for create table statement to provide inline values; fixed show create table to provide inlined values
…topwords_list \ hitless_words_list; documented format_ext_files option of SHOW CREATE TABLE statement
@tomatolog
Copy link
Copy Markdown
Contributor Author

this implemets #2046 and slack discussion https://manticoresearch.slack.com/archives/C5EEXJG31/p1766690770372619

added new configuration options of the CREATE TABLE these accept inline values:

  • exceptions_list
  • wordforms_list
  • stopwords_list
  • hitless_words_list

after these got saved into data_dir/table_name the same was as all other external files got copied and used.

Also fixed SHOW CREATE TABLE to show content of all external files as _list option, ie data_dir/table_name/stopwords_chunk_0_0.txt by default will be printed as

SHOW CREATE TABLE test; 
CREATE TABLE test ... stopwords_list='word1; word2'

but also added option to that statement format_ext_files with allowed values path and values that could control the printer to show the path to the stopwords file instead of the its values

SHOW CREATE TABLE test OPTION format_ext_files='path';
CREATE TABLE test ... stopwords='data_dir/table_name/stopwords_chunk_0_0.txt`'

Ask @sanikolaev and @klirichek to review and provide the feedback as you discuss this feature and have strong opinion about it

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 1, 2026

clt

❌ CLT tests in test/clt-tests/expected-errors/
✅ OK: 12
❌ Failed: 1
⏳ Duration: 83s
👉 Check Action Results for commit be5ad08

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/expected-errors/test-external-files-handling-negative.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "z => w" > /var/lib/manticore/wordforms2.txt; echo "a => b" > /var/lib/manticore/wordforms3.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "z" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_ram (id BIGINT, title TEXT, tag INTEGER) stopwords='/var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt, /var/lib/manticore/wordforms3.txt' rt_mem_limit='256M';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram;"
––– output –––
+-------+------+
| Table | Type |
+-------+------+
| t_ram | rt   |
+-------+------+
+------+----------+------+
| id   | title    | tag  |
+------+----------+------+
|    2 | srthh    |   88 |
|    1 | zxczxc   |   77 |
|    3 | srthgrth |   99 |
+------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table                                                                                                                                                                                                                                                                                                                                                                                                             |
+ | Table | Create Table                                                                                                                                        |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| t_ram | CREATE TABLE t_ram (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/t_ram/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt' wordforms='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt /var/lib/manticore/t_ram/wordforms_chunk0_2.txt' rt_mem_limit='268435456' |
+ ) exceptions_list='c => d' wordforms_list='z => w; z => w; a => b' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 1, 2026

clt

❌ CLT tests in test/clt-tests/core/
✅ OK: 16
❌ Failed: 3
⏳ Duration: 189s
👉 Check Action Results for commit be5ad08

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/core/test-external-files-handling.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "x => y" > /var/lib/manticore/wordforms2.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_disk (id BIGINT, title TEXT, tag INTEGER) stopwords = 'en, it, /var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions = '/var/lib/manticore/exc.txt' wordforms = '/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt,';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_disk;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_disk; OPTIMIZE TABLE t_disk OPTION cutoff=1, sync=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_disk; OPTIMIZE TABLE t_disk OPTION cutoff=1, sync=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_disk; SHOW CREATE TABLE t_disk;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| t_disk | rt   |
+--------+------+
+------+----------+------+
| id   | title    | tag  |
+------+----------+------+
|    1 | zxczxc   |   77 |
|    2 | srthh    |   88 |
|    3 | srthgrth |   99 |
+------+----------+------+
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                                                                                                                                                                                                                                            |
+ | Table  | Create Table                                                                                                        |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
| t_disk | CREATE TABLE t_disk (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/t_disk/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_disk/stopwords_chunk0_0.txt /var/lib/manticore/t_disk/stopwords_chunk0_1.txt /var/lib/manticore/t_disk/stopwords_chunk0_2.txt /var/lib/manticore/t_disk/stopwords_chunk0_3.txt' wordforms='/var/lib/manticore/t_disk/wordforms_chunk0_0.txt /var/lib/manticore/t_disk/wordforms_chunk0_1.txt' |
+ ) exceptions_list='c => d' wordforms_list='z => w; x => y' |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_disk STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
mkdir -p /var/lib/manticore/t/ && echo "x => z" > /var/lib/manticore/t/new_exc.txt && echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt && echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt && echo "newstop1" > /var/lib/manticore/t/new_stop1.txt && echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
echo "x => z" > /var/lib/manticore/t/new_exc.txt
––– output –––
OK
––– input –––
echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt
––– output –––
OK
––– input –––
echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt
––– output –––
OK
––– input –––
echo "newstop1" > /var/lib/manticore/t/new_stop1.txt
––– output –––
OK
––– input –––
echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='/var/lib/manticore/t/new_stop1.txt, /var/lib/manticore/t/new_stop2.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='/var/lib/manticore/t/new_wordforms1.txt, /var/lib/manticore/t/new_wordforms2.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
echo "newstop3" > /var/lib/manticore/t/new_stop3.txt && echo "newstop4" > /var/lib/manticore/t/new_stop4.txt && echo "newstop5" > /var/lib/manticore/t/new_stop5.txt && echo "newstop6" > /var/lib/manticore/t/new_stop6.txt && echo "newstop7" > /var/lib/manticore/t/new_stop7.txt
––– output –––
OK
––– input –––
echo "word1 => replacement1" > /var/lib/manticore/t/new_wordforms3.txt && echo "word2 => replacement2" > /var/lib/manticore/t/new_wordforms4.txt && echo "word3 => replacement3" > /var/lib/manticore/t/new_wordforms5.txt && echo "word4 => replacement4" > /var/lib/manticore/t/new_wordforms6.txt && echo "word5 => replacement5" > /var/lib/manticore/t/new_wordforms7.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='/var/lib/manticore/t/new_stop3.txt, /var/lib/manticore/t/new_stop4.txt, /var/lib/manticore/t/new_stop5.txt, /var/lib/manticore/t/new_stop6.txt, /var/lib/manticore/t/new_stop7.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='/var/lib/manticore/t/new_wordforms3.txt, /var/lib/manticore/t/new_wordforms4.txt, /var/lib/manticore/t/new_wordforms5.txt, /var/lib/manticore/t/new_wordforms6.txt, /var/lib/manticore/t/new_wordforms7.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
test/clt-tests/core/test-create-table-like-existing-table-with-data.rec
––– input –––
echo "a => b" > /var/lib/manticore/wordforms1.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop.txt
––– output –––
OK
––– input –––
ls -1 /var/lib/manticore/
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /dev/null; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE table1 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO table1 (id, title, tag) values (1, 'zxczxc', 77);"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM table1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table2` LIKE `table1` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table2; SHOW CREATE TABLE table2;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
+--------+------+
+------+--------+------+
| id   | title  | tag  |
+------+--------+------+
|    1 | zxczxc |   77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table2 | CREATE TABLE table2 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table2/exceptions.txt' stopwords='/var/lib/manticore/table2/stopwords_0.txt' wordforms='/var/lib/manticore/table2/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
cat /var/lib/manticore/table2/exceptions.txt
––– output –––
OK
––– input –––
cat /var/lib/manticore/table2/stopwords_0.txt
––– output –––
OK
––– input –––
cat /var/lib/manticore/table2/wordforms_0.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE table1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE table1 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not exists `table3` LIKE `table2` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table3; SHOW CREATE TABLE table3;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
| table3 | rt   |
+--------+------+
+------+--------+------+
| id   | title  | tag  |
+------+--------+------+
|    1 | zxczxc |   77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table3 | CREATE TABLE table3 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table3/exceptions.txt' stopwords='/var/lib/manticore/table3/stopwords_0.txt' wordforms='/var/lib/manticore/table3/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if NOT exists `table4` LIKE `table1` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table4; SHOW CREATE TABLE table4;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
| table3 | rt   |
| table4 | rt   |
+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table4 | CREATE TABLE table4 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table4/exceptions.txt' stopwords='/var/lib/manticore/table4/stopwords_0.txt' wordforms='/var/lib/manticore/table4/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not EXISTS `table5` LIKE `table3` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table5; SHOW CREATE TABLE table5;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
| table3 | rt   |
| table4 | rt   |
| table5 | rt   |
+--------+------+
+------+--------+------+
| id   | title  | tag  |
+------+--------+------+
|    1 | zxczxc |   77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table5 | CREATE TABLE table5 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table5/exceptions.txt' stopwords='/var/lib/manticore/table5/stopwords_0.txt' wordforms='/var/lib/manticore/table5/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'create table iF NoT ExIstS `table7` like `table4` with data;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table7; SHOW CREATE TABLE table7;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
| table3 | rt   |
| table4 | rt   |
| table5 | rt   |
| table7 | rt   |
+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table7 | CREATE TABLE table7 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table7/exceptions.txt' stopwords='/var/lib/manticore/table7/stopwords_0.txt' wordforms='/var/lib/manticore/table7/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table_5; SHOW CREATE TABLE table_5;"
––– output –––
+---------+------+
| Table   | Type |
+---------+------+
| table1  | rt   |
| table2  | rt   |
| table3  | rt   |
| table4  | rt   |
| table5  | rt   |
| table7  | rt   |
| table_5 | rt   |
+---------+------+
+------+--------+------+
| id   | title  | tag  |
+------+--------+------+
|    1 | zxczxc |   77 |
+------+--------+------+
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +---------+---------------------------------------------------------------------------------------------------------------------------------------+
- | Table   | Create Table                                                                                                                                                                                                                     |
+ | Table   | Create Table                                                                                                                          |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +---------+---------------------------------------------------------------------------------------------------------------------------------------+
| table_5 | CREATE TABLE table_5 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table_5/exceptions.txt' stopwords='/var/lib/manticore/table_5/stopwords_0.txt' wordforms='/var/lib/manticore/table_5/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +---------+---------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA abs;'
––– output –––
OK
test/clt-tests/core/test-external-files-handling-ramchunk.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "x => y" > /var/lib/manticore/wordforms2.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_ram (id BIGINT, title TEXT, tag INTEGER) stopwords = 'en, it, /var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions = '/var/lib/manticore/exc.txt' wordforms = '/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt' rt_mem_limit = '256M';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram;"
––– output –––
+-------+------+
| Table | Type |
+-------+------+
| t_ram | rt   |
+-------+------+
+------+----------+------+
| id   | title    | tag  |
+------+----------+------+
|    2 | srthh    |   88 |
|    1 | zxczxc   |   77 |
|    3 | srthgrth |   99 |
+------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
+ | Table | Create Table                                                                                                                                |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
| t_ram | CREATE TABLE t_ram (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/t_ram/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt /var/lib/manticore/t_ram/stopwords_chunk0_2.txt /var/lib/manticore/t_ram/stopwords_chunk0_3.txt' wordforms='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt' rt_mem_limit='268435456' |
+ ) exceptions_list='c => d' wordforms_list='z => w; x => y' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
mkdir -p /var/lib/manticore/t/ && echo "x => z" > /var/lib/manticore/t/new_exc.txt && echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt && echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt && echo "newstop1" > /var/lib/manticore/t/new_stop1.txt && echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
echo "x => z" > /var/lib/manticore/t/new_exc.txt
––– output –––
OK
––– input –––
echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt
––– output –––
OK
––– input –––
echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt
––– output –––
OK
––– input –––
echo "newstop1" > /var/lib/manticore/t/new_stop1.txt
––– output –––
OK
––– input –––
echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='/var/lib/manticore/t/new_stop1.txt, /var/lib/manticore/t/new_stop2.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='/var/lib/manticore/t/new_wordforms1.txt, /var/lib/manticore/t/new_wordforms2.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log; fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
echo "newstop3" > /var/lib/manticore/t/new_stop3.txt && echo "newstop4" > /var/lib/manticore/t/new_stop4.txt && echo "newstop5" > /var/lib/manticore/t/new_stop5.txt && echo "newstop6" > /var/lib/manticore/t/new_stop6.txt && echo "newstop7" > /var/lib/manticore/t/new_stop7.txt
––– output –––
OK
––– input –––
echo "word1 => replacement1" > /var/lib/manticore/t/new_wordforms3.txt && echo "word2 => replacement2" > /var/lib/manticore/t/new_wordforms4.txt && echo "word3 => replacement3" > /var/lib/manticore/t/new_wordforms5.txt && echo "word4 => replacement4" > /var/lib/manticore/t/new_wordforms6.txt && echo "word5 => replacement5" > /var/lib/manticore/t/new_wordforms7.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='/var/lib/manticore/t/new_stop3.txt, /var/lib/manticore/t/new_stop4.txt, /var/lib/manticore/t/new_stop5.txt, /var/lib/manticore/t/new_stop6.txt, /var/lib/manticore/t/new_stop7.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='/var/lib/manticore/t/new_wordforms3.txt, /var/lib/manticore/t/new_wordforms4.txt, /var/lib/manticore/t/new_wordforms5.txt, /var/lib/manticore/t/new_wordforms6.txt, /var/lib/manticore/t/new_wordforms7.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log; fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK

Comment thread manual/english/Creating_a_table/NLP_and_tokenization/Exceptions.md Outdated
Comment thread manual/english/Creating_a_table/NLP_and_tokenization/Wordforms.md Outdated
Comment thread manual/english/Creating_a_table/NLP_and_tokenization/Wordforms.md Outdated
Comment thread test/test_403/test.xml
@tomatolog tomatolog requested a review from sanikolaev January 21, 2026 16:06
@tomatolog tomatolog dismissed sanikolaev’s stale review January 21, 2026 16:12

already discussed changes I just pushed

@tomatolog tomatolog merged commit f70aecc into master Jan 21, 2026
@tomatolog tomatolog deleted the ext_list_values_wip branch January 21, 2026 16:14
@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/expected-errors/
✅ OK: 12
❌ Failed: 1
⏳ Duration: 81s
👉 Check Action Results for commit af8b4c3

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/expected-errors/test-external-files-handling-negative.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "z => w" > /var/lib/manticore/wordforms2.txt; echo "a => b" > /var/lib/manticore/wordforms3.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "z" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_ram (id BIGINT, title TEXT, tag INTEGER) stopwords='/var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt, /var/lib/manticore/wordforms3.txt' rt_mem_limit='256M';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram;"
––– output –––
+-------+------+
| Table | Type |
+-------+------+
| t_ram | rt   |
+-------+------+
+------+----------+------+
| id   | title    | tag  |
+------+----------+------+
|    2 | srthh    |   88 |
|    1 | zxczxc   |   77 |
|    3 | srthgrth |   99 |
+------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table                                                                                                                                                                                                                                                                                                                                                                                                             |
+ | Table | Create Table                                                                                                                                        |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| t_ram | CREATE TABLE t_ram (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/t_ram/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt' wordforms='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt /var/lib/manticore/t_ram/wordforms_chunk0_2.txt' rt_mem_limit='268435456' |
+ ) exceptions_list='c => d' wordforms_list='z => w; z => w; a => b' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/core/
✅ OK: 16
❌ Failed: 3
⏳ Duration: 228s
👉 Check Action Results for commit af8b4c3

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/core/test-external-files-handling.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "x => y" > /var/lib/manticore/wordforms2.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_disk (id BIGINT, title TEXT, tag INTEGER) stopwords = 'en, it, /var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions = '/var/lib/manticore/exc.txt' wordforms = '/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt,';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_disk;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_disk; OPTIMIZE TABLE t_disk OPTION cutoff=1, sync=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_disk; OPTIMIZE TABLE t_disk OPTION cutoff=1, sync=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_disk; SHOW CREATE TABLE t_disk;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| t_disk | rt   |
+--------+------+
+------+----------+------+
| id   | title    | tag  |
+------+----------+------+
|    1 | zxczxc   |   77 |
|    2 | srthh    |   88 |
|    3 | srthgrth |   99 |
+------+----------+------+
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                                                                                                                                                                                                                                            |
+ | Table  | Create Table                                                                                                        |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
| t_disk | CREATE TABLE t_disk (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/t_disk/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_disk/stopwords_chunk0_0.txt /var/lib/manticore/t_disk/stopwords_chunk0_1.txt /var/lib/manticore/t_disk/stopwords_chunk0_2.txt /var/lib/manticore/t_disk/stopwords_chunk0_3.txt' wordforms='/var/lib/manticore/t_disk/wordforms_chunk0_0.txt /var/lib/manticore/t_disk/wordforms_chunk0_1.txt' |
+ ) exceptions_list='c => d' wordforms_list='z => w; x => y' |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_disk STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
mkdir -p /var/lib/manticore/t/ && echo "x => z" > /var/lib/manticore/t/new_exc.txt && echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt && echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt && echo "newstop1" > /var/lib/manticore/t/new_stop1.txt && echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
echo "x => z" > /var/lib/manticore/t/new_exc.txt
––– output –––
OK
––– input –––
echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt
––– output –––
OK
––– input –––
echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt
––– output –––
OK
––– input –––
echo "newstop1" > /var/lib/manticore/t/new_stop1.txt
––– output –––
OK
––– input –––
echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='/var/lib/manticore/t/new_stop1.txt, /var/lib/manticore/t/new_stop2.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='/var/lib/manticore/t/new_wordforms1.txt, /var/lib/manticore/t/new_wordforms2.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
echo "newstop3" > /var/lib/manticore/t/new_stop3.txt && echo "newstop4" > /var/lib/manticore/t/new_stop4.txt && echo "newstop5" > /var/lib/manticore/t/new_stop5.txt && echo "newstop6" > /var/lib/manticore/t/new_stop6.txt && echo "newstop7" > /var/lib/manticore/t/new_stop7.txt
––– output –––
OK
––– input –––
echo "word1 => replacement1" > /var/lib/manticore/t/new_wordforms3.txt && echo "word2 => replacement2" > /var/lib/manticore/t/new_wordforms4.txt && echo "word3 => replacement3" > /var/lib/manticore/t/new_wordforms5.txt && echo "word4 => replacement4" > /var/lib/manticore/t/new_wordforms6.txt && echo "word5 => replacement5" > /var/lib/manticore/t/new_wordforms7.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='/var/lib/manticore/t/new_stop3.txt, /var/lib/manticore/t/new_stop4.txt, /var/lib/manticore/t/new_stop5.txt, /var/lib/manticore/t/new_stop6.txt, /var/lib/manticore/t/new_stop7.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='/var/lib/manticore/t/new_wordforms3.txt, /var/lib/manticore/t/new_wordforms4.txt, /var/lib/manticore/t/new_wordforms5.txt, /var/lib/manticore/t/new_wordforms6.txt, /var/lib/manticore/t/new_wordforms7.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
test/clt-tests/core/test-create-table-like-existing-table-with-data.rec
––– input –––
echo "a => b" > /var/lib/manticore/wordforms1.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop.txt
––– output –––
OK
––– input –––
ls -1 /var/lib/manticore/
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /dev/null; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE table1 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO table1 (id, title, tag) values (1, 'zxczxc', 77);"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM table1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table2` LIKE `table1` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table2; SHOW CREATE TABLE table2;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
+--------+------+
+------+--------+------+
| id   | title  | tag  |
+------+--------+------+
|    1 | zxczxc |   77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table2 | CREATE TABLE table2 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table2/exceptions.txt' stopwords='/var/lib/manticore/table2/stopwords_0.txt' wordforms='/var/lib/manticore/table2/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
cat /var/lib/manticore/table2/exceptions.txt
––– output –––
OK
––– input –––
cat /var/lib/manticore/table2/stopwords_0.txt
––– output –––
OK
––– input –––
cat /var/lib/manticore/table2/wordforms_0.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE table1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE table1 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not exists `table3` LIKE `table2` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table3; SHOW CREATE TABLE table3;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
| table3 | rt   |
+--------+------+
+------+--------+------+
| id   | title  | tag  |
+------+--------+------+
|    1 | zxczxc |   77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table3 | CREATE TABLE table3 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table3/exceptions.txt' stopwords='/var/lib/manticore/table3/stopwords_0.txt' wordforms='/var/lib/manticore/table3/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if NOT exists `table4` LIKE `table1` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table4; SHOW CREATE TABLE table4;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
| table3 | rt   |
| table4 | rt   |
+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table4 | CREATE TABLE table4 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table4/exceptions.txt' stopwords='/var/lib/manticore/table4/stopwords_0.txt' wordforms='/var/lib/manticore/table4/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not EXISTS `table5` LIKE `table3` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table5; SHOW CREATE TABLE table5;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
| table3 | rt   |
| table4 | rt   |
| table5 | rt   |
+--------+------+
+------+--------+------+
| id   | title  | tag  |
+------+--------+------+
|    1 | zxczxc |   77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table5 | CREATE TABLE table5 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table5/exceptions.txt' stopwords='/var/lib/manticore/table5/stopwords_0.txt' wordforms='/var/lib/manticore/table5/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'create table iF NoT ExIstS `table7` like `table4` with data;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table7; SHOW CREATE TABLE table7;"
––– output –––
+--------+------+
| Table  | Type |
+--------+------+
| table1 | rt   |
| table2 | rt   |
| table3 | rt   |
| table4 | rt   |
| table5 | rt   |
| table7 | rt   |
+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table  | Create Table                                                                                                                                                                                                                 |
+ | Table  | Create Table                                                                                                                         |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
| table7 | CREATE TABLE table7 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table7/exceptions.txt' stopwords='/var/lib/manticore/table7/stopwords_0.txt' wordforms='/var/lib/manticore/table7/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table_5; SHOW CREATE TABLE table_5;"
––– output –––
+---------+------+
| Table   | Type |
+---------+------+
| table1  | rt   |
| table2  | rt   |
| table3  | rt   |
| table4  | rt   |
| table5  | rt   |
| table7  | rt   |
| table_5 | rt   |
+---------+------+
+------+--------+------+
| id   | title  | tag  |
+------+--------+------+
|    1 | zxczxc |   77 |
+------+--------+------+
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +---------+---------------------------------------------------------------------------------------------------------------------------------------+
- | Table   | Create Table                                                                                                                                                                                                                     |
+ | Table   | Create Table                                                                                                                          |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +---------+---------------------------------------------------------------------------------------------------------------------------------------+
| table_5 | CREATE TABLE table_5 (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/table_5/exceptions.txt' stopwords='/var/lib/manticore/table_5/stopwords_0.txt' wordforms='/var/lib/manticore/table_5/wordforms_0.txt' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +---------+---------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA abs;'
––– output –––
OK
test/clt-tests/core/test-external-files-handling-ramchunk.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "x => y" > /var/lib/manticore/wordforms2.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_ram (id BIGINT, title TEXT, tag INTEGER) stopwords = 'en, it, /var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions = '/var/lib/manticore/exc.txt' wordforms = '/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt' rt_mem_limit = '256M';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram;"
––– output –––
+-------+------+
| Table | Type |
+-------+------+
| t_ram | rt   |
+-------+------+
+------+----------+------+
| id   | title    | tag  |
+------+----------+------+
|    2 | srthh    |   88 |
|    1 | zxczxc   |   77 |
|    3 | srthgrth |   99 |
+------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
+ | Table | Create Table                                                                                                                                |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
| t_ram | CREATE TABLE t_ram (
id bigint,
title text,
tag integer
- ) exceptions='/var/lib/manticore/t_ram/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt /var/lib/manticore/t_ram/stopwords_chunk0_2.txt /var/lib/manticore/t_ram/stopwords_chunk0_3.txt' wordforms='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt' rt_mem_limit='268435456' |
+ ) exceptions_list='c => d' wordforms_list='z => w; x => y' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
mkdir -p /var/lib/manticore/t/ && echo "x => z" > /var/lib/manticore/t/new_exc.txt && echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt && echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt && echo "newstop1" > /var/lib/manticore/t/new_stop1.txt && echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
echo "x => z" > /var/lib/manticore/t/new_exc.txt
––– output –––
OK
––– input –––
echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt
––– output –––
OK
––– input –––
echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt
––– output –––
OK
––– input –––
echo "newstop1" > /var/lib/manticore/t/new_stop1.txt
––– output –––
OK
––– input –––
echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='/var/lib/manticore/t/new_stop1.txt, /var/lib/manticore/t/new_stop2.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='/var/lib/manticore/t/new_wordforms1.txt, /var/lib/manticore/t/new_wordforms2.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log; fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
echo "newstop3" > /var/lib/manticore/t/new_stop3.txt && echo "newstop4" > /var/lib/manticore/t/new_stop4.txt && echo "newstop5" > /var/lib/manticore/t/new_stop5.txt && echo "newstop6" > /var/lib/manticore/t/new_stop6.txt && echo "newstop7" > /var/lib/manticore/t/new_stop7.txt
––– output –––
OK
––– input –––
echo "word1 => replacement1" > /var/lib/manticore/t/new_wordforms3.txt && echo "word2 => replacement2" > /var/lib/manticore/t/new_wordforms4.txt && echo "word3 => replacement3" > /var/lib/manticore/t/new_wordforms5.txt && echo "word4 => replacement4" > /var/lib/manticore/t/new_wordforms6.txt && echo "word5 => replacement5" > /var/lib/manticore/t/new_wordforms7.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='/var/lib/manticore/t/new_stop3.txt, /var/lib/manticore/t/new_stop4.txt, /var/lib/manticore/t/new_stop5.txt, /var/lib/manticore/t/new_stop6.txt, /var/lib/manticore/t/new_stop7.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='/var/lib/manticore/t/new_wordforms3.txt, /var/lib/manticore/t/new_wordforms4.txt, /var/lib/manticore/t/new_wordforms5.txt, /var/lib/manticore/t/new_wordforms6.txt, /var/lib/manticore/t/new_wordforms7.txt';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log; fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants