manticoresoftware / manticoresearch

Easy to use open source fast database for search | Good alternative to Elasticsearch now | Drop-in replacement for E in the ELK soon
https://manticoresearch.com
GNU General Public License v3.0
9.08k stars 509 forks source link

CI: Build buddy from the git repository instead of repo package #2688

Closed donhardman closed 3 weeks ago

github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/plugins/ โœ… OK: 0 โŒ Failed: 1 โณ Duration: 23s ๐Ÿ‘‰ Check Action Results for commit 24d0d06 Failed tests:

test/clt-tests/plugins/test-enable-disable-buddy-plugin.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:35:24.040 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 07:35:24.041 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 07:35:24.041 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:35:24.041 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:35:24.041 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:35:24.041 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:35:24.057 2024] [27] prereading 0 tables + [Mon Oct 28 07:35:24.057 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 07:35:24.061 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:35:24.061 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'show' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'knn' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' + ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/replication/ โœ… OK: 1 โŒ Failed: 1 โณ Duration: 39s ๐Ÿ‘‰ Check Action Results for commit 24d0d06 Failed tests:

test/clt-tests/replication/replication-test.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=1 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=3 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';" โ€“โ€“โ€“ output โ€“โ€“โ€“ +-----------------------------+--------+ | Counter | Value | +-----------------------------+--------+ | cluster_replication_indexes | testrt | +-----------------------------+--------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "REPLACE INTO replication:testrt SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994;"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ - 0 + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994' + 1 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/buddy/ โœ… OK: 0 โŒ Failed: 4 โณ Duration: 113s ๐Ÿ‘‰ Check Action Results for commit 24d0d06 Failed tests:

test/clt-tests/buddy/test-fuzzy-search-negative.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:35:43.206 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 07:35:43.206 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 07:35:43.207 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:35:43.207 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:35:43.207 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:35:43.207 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:35:43.221 2024] [27] prereading 0 tables + [Mon Oct 28 07:35:43.221 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 07:35:43.225 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:35:43.225 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') OPTION fuzzy=-1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ ERROR 1064 (42000) at line 1: P01: syntax error, unexpected '-' near '-1' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') OPTION fuzzy='0';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') OPTION fuzzy='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') OPTION fuzzy=a;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') OPTION fuzzy=@;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Failed to parse query + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: no such table 'non_existing_table' + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('hello') OPTION fuzzy=1 layouts='';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid options in query string, make sure they are separated by commas + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' ```
test/clt-tests/buddy/test-fuzzy-search-non-min-infix-len.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:36:01.356 2024] [25] watchdog: main process 26 forked ok + [Mon Oct 28 07:36:01.356 2024] [26] Using local time zone '/etc/localtime' + [Mon Oct 28 07:36:01.357 2024] [26] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:36:01.357 2024] [26] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:36:01.357 2024] [26] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:36:01.357 2024] [26] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:36:01.371 2024] [28] prereading 0 tables + [Mon Oct 28 07:36:01.371 2024] [28] preread 0 tables in 0.000 sec + [Mon Oct 28 07:36:01.376 2024] [26] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:36:01.376 2024] [26] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table test (id bigint, value text);" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Fuzzy search requires min_infix_len to be set + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ALTER TABLE test min_infix_len='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 30; mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' + ```
test/clt-tests/buddy/test-fuzzy-search.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:36:42.270 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 07:36:42.271 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 07:36:42.271 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:36:42.271 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:36:42.271 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:36:42.271 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:36:42.285 2024] [27] prereading 0 tables + [Mon Oct 28 07:36:42.285 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 07:36:42.289 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:36:42.289 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 195 | BRICE MULLIN | - | 306 | GRICELDA SKELTON | - | 362 | LAURICE SOLIZ | - | 477 | ERICH LLAMAS | - | 489 | LATRICE MANCILLA | - | 607 | MAURICE PRATHER | - | 658 | BRICE OLIVARES | - | 696 | PATRICE WOOD | - | 821 | JUNITA RICHARD | - | 834 | AUREA RICO | - | 853 | ROXANNE BRICE | - | 1121 | RICH MOLL | - | 1133 | JOELLA RICHARD | - | 1159 | MINDY HEINRICH | - | 1223 | YADIRA RICHARDSON | - | 1378 | BRICE ALLMAN | - | 1573 | RICO VALENZUELA | - | 1601 | BEATRICE LOVE | - | 1821 | RICHELLE ROE | - | 2135 | CHIQUITA RICHTER | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+----------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+----------------------+ - | 674 | CONCEPTION ABERNATHY | - | 963 | BERNARDINA OSHEA | - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - | 2237 | JUDI BERNAL | - | 2445 | MERNA GAITHER | - | 3064 | BERNADINE HIBBARD | - | 3194 | BERNADETTE SHELTON | - | 3687 | VERNA GASTON | - | 3780 | BERNARDINE WILKINS | - | 4369 | ERNA VITALE | - | 4636 | TARSHA HERNANDEZ | - | 4661 | FERNANDO HOUCK | - | 5043 | CONSTANCE ABERNATHY | - | 5579 | LAVERNA GORMAN | - | 5581 | FERNANDE ISRAEL | - | 5797 | LAVERNA STORM | - +------+----------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('ANT') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 7 | DAMIAN SOMERS | - | 15 | TAMI WHELAN | - | 18 | DARCY SANDBERG | - | 19 | RANEE BROUGHTON | - | 20 | STEPHEN ALLMAN | - | 29 | AMANDA KEY | - | 36 | ELFRIEDA HANKS | - | 40 | NANNIE WILLINGHAM | - | 41 | YOULANDA TROUT | - | 43 | ANTHONY SMOOT | - | 46 | FRANCIE BUNDY | - | 50 | LATASHA POLAND | - | 52 | SHEMEKA DURAND | - | 53 | LATANYA ARNDT | - | 55 | JANELLE LASTER | - | 56 | NANNIE HANNON | - | 57 | GRANVILLE VALDEZ | - | 58 | DEDE SPANN | - | 59 | DANIEL MERRITT | - | 62 | SAUL HOWLAND | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('tony') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+--------------------+ - | 117 | ANTONIA VANWINKLE | - | 219 | ANTONIA MELGAR | - | 390 | KARYL TONEY | - | 760 | TONYA SHERRILL | - | 1526 | LEONE TONEY | - | 2131 | TONIA RAPP | - | 2194 | TONIE HOANG | - | 2332 | LATONIA VILLASENOR | - | 2356 | TONIE BARNHILL | - | 2429 | TONIA BOSTICK | - | 2583 | TONI SPENCE | - | 2724 | ANTONIETTA CINTRON | - | 2880 | ANTONINA HASKELL | - | 3317 | TONY DUPRE | - | 3581 | ANTONIETTA BAEZ | - | 3857 | TONEY SCHOEN | - | 4365 | ROCHEL TONEY | - | 4607 | ANTONIA DRISCOLL | - | 4656 | TONYA PARRIS | - | 4799 | TONY WEISS | - +------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999498 | DORTHY DUCKWORTH | - | 999263 | RUTHANN GREENE | - | 999196 | HEATH MCNAMARA | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 999012 | HEATHER HAMMOCK | - | 998892 | IRWIN SOUTHARD | - | 998676 | BURT WOODWORTH | - | 998525 | SCOTT CARRION | - | 998220 | MORA WENTWORTH | - | 998083 | EDMUND ASHWORTH | - | 997999 | EDYTH CARLISLE | - | 997944 | RUTHE SCHENK | - | 997557 | ARTIE SOUTH | - | 997543 | HEATHER CLAUSEN | - | 997395 | JON ASHWORTH | - | 997286 | JOI FARNSWORTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy="1";" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+------------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+------------------------+ - | 999960 | JONELL ENRIGHT | - | 999931 | JONELL NIX | - | 999925 | JONAH BURNSIDE | - | 999921 | LAVONNA JONAS | - | 999859 | JOHNETTA DO | - | 999551 | JOHNNY CARNES | - | 999547 | JOHNATHAN PEPPER | - | 999508 | JOHNATHAN STUBBLEFIELD | - | 999170 | JOHNNY ABRAMS | - | 999032 | AGNUS STJOHN | - | 998834 | SCARLETT JONAS | - | 998797 | JOHNATHON READ | - | 998466 | JOHNSON JEAN | - | 998392 | JOHN BACH | - | 998305 | JOHNNY TAFOYA | - | 998303 | JONG SAUER | - | 998302 | JONATHON DUPRE | - | 998277 | JOHNNIE LOR | - | 998180 | JONA ELROD | - | 998153 | JONG YORK | - +--------+------------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') AND id BETWEEN 10000 AND 20000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +-------+--------------------+ - | 11037 | DESIRE LANE | - | 11055 | LANELLE WATTS | - | 11358 | JANIE CRAWFORD | - | 11391 | JAN LEW | - | 11396 | MELITA LANE | - | 11414 | MARYJANE HOLTZ | - | 11498 | JANN LEDEZMA | - | 11568 | JANETH SELBY | - | 11752 | TRACIE JANKOWSKI | - | 11757 | JANETTE GANTT | - | 11833 | JANELLE DRIGGERS | - | 10027 | ANJANETTE PORTILLO | - | 10055 | JANETTE LYNCH | - | 10068 | JANN HACKETT | - | 10110 | ALEJANDRINA DOWNS | - | 10242 | ALEJANDRINA ZAPATA | - | 10269 | JANNET QUINN | - | 10326 | JANICE APPEL | - | 10385 | JANN CASON | - | 10628 | LANETTE SWAIN | - +-------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') AND id BETWEEN 1000 AND 2000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+---------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+---------------------+ - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - +------+---------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SARA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+------------------+ - | 187 | LARA KIRK | - | 206 | CLARA MORRIS | - | 350 | KLARA DONALDSON | - | 989 | ELAINE SARABIA | - | 1408 | LARA FREDERICK | - | 1660 | SARA GARNER | - | 1819 | KARA CINTRON | - | 1830 | SARAI ESPINAL | - | 2073 | VALENTIN SARABIA | - | 2929 | LARA CINTRON | - | 3044 | KLARA ANDRES | - | 3372 | KLARA NORTON | - | 3740 | CRUZ SARABIA | - | 3779 | RUSSEL LARA | - | 4699 | HEE SARABIA | - | 4932 | KLARA GOODING | - | 5829 | SARAI LINDLEY | - | 5864 | SARAN KNAPP | - | 5917 | SARA WAITE | - | 6634 | CLARA BEALE | - +------+------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 0 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joshua | - | joy | - | joyce | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend, 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness, '' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 2 AS fuzziness, 'us,ru' AS layouts, 1 AS append, 1 AS prepend, 2 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | jose | - | joy | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | albert | - | alexander | - | allen | - | dale | - | dallas | - | donald | - | gale | - | kendall | - | marshall | - | walter | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('mi', 'name', 0 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | ami | - | britni | - | brittni | - | cami | - | choi | - | darci | - | eleni | - | jami | - | jani | - | jeni | - | joi | - | kaci | - | kami | - | kimi | - | laci | - | lani | - | luci | - | mancini | - | marci | - | martini | - | melani | - | muoi | - | nanci | - | neomi | - | noemi | - | nohemi | - | ricci | - | shani | - | staci | - | tammi | - | toi | - | tomi | - | traci | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | chang | - | chi | - | chung | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | page | - | paige | - | palma | - | palmer | - | paris | - | parker | - | pat | - | patrick | - | paul | - | paz | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('gr', 'name', 1 AS fuzziness, 'ru' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | grace | - | gracia | - | grady | - | graham | - | grant | - | gregg | - | gregory | - | griffin | - | grover | - | montenegro | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | query | + - +-----------+ - | some | - | something | - +-----------+ - ```
test/clt-tests/buddy/test-fuzzy-autocomplete-http.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:35:20.932 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 07:35:20.933 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 07:35:20.933 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:35:20.933 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:35:20.933 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:35:20.933 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:35:20.949 2024] [27] prereading 0 tables + [Mon Oct 28 07:35:20.949 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 07:35:20.953 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:35:20.953 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"RICH"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 8380, - "total_relation": "eq", - "hits": [ - { - "_id": 832342, - "_score": %{NUMBER}, - "_source": { - "username": "RICO RICE" - } - }, - { - "_id": 768099, - "_score": 1562, - "_source": { - "username": "BRICE RICH" - } - }, - { - "_id": 989140, - "_score": 1549, - "_source": { - "username": "LEVI RICO" - } - }, - { - "_id": 869271, - "_score": 1549, - "_source": { - "username": "MARQUITA RICO" - } - }, - { - "_id": 932341, - "_score": 1549, - "_source": { - "username": "JERAMY RICO" - } - }, - { - "_id": 989530, - "_score": 1549, - "_source": { - "username": "RICO RAWLINGS" - } - }, - { - "_id": 939666, - "_score": 1549, - "_source": { - "username": "LAURENE RICO" - } - }, - { - "_id": 944740, - "_score": 1549, - "_source": { - "username": "JOSHUA RICO" - } - }, - { - "_id": 979783, - "_score": 1549, - "_source": { - "username": "RICO SWANK" - } - }, - { - "_id": 929967, - "_score": 1549, - "_source": { - "username": "BIANCA RICO" - } - }, - { - "_id": 914988, - "_score": 1549, - "_source": { - "username": "SUSANNE RICO" - } - }, - { - "_id": 911989, - "_score": 1549, - "_source": { - "username": "RICO IVY" - } - }, - { - "_id": 975060, - "_score": 1549, - "_source": { - "username": "RICO BRENNER" - } - }, - { - "_id": 921107, - "_score": 1549, - "_source": { - "username": "KENYETTA RICO" - } - }, - { - "_id": 996127, - "_score": 1549, - "_source": { - "username": "RICO WHITLOCK" - } - }, - { - "_id": 918295, - "_score": 1549, - "_source": { - "username": "MARLEN RICO" - } - }, - { - "_id": 933392, - "_score": 1549, - "_source": { - "username": "AN RICO" - } - }, - { - "_id": 924527, - "_score": 1549, - "_source": { - "username": "RICO BOEHM" - } - }, - { - "_id": 995638, - "_score": 1549, - "_source": { - "username": "RICO JAEGER" - } - }, - { - "_id": 950970, - "_score": 1549, - "_source": { - "username": "RICO TOTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"EBGRNA"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4329, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "BERNARDA BERNAL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WEIR" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA CHEUNG" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GRAFF" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA PUGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WOODWORTH" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA REICHERT" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LATHAM" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA FRANZ" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HAMLIN" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA POSTON" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HOOPER" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WITTE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ISBELL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA VEGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA MOREY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GUILLORY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LOUIE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GILL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ABRAHAM" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"ANT"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 249348, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FERDINAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "NATHANIAL KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANGELO KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANTONETTE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANN DENTON" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LANDON KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNE DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "STEPHAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "THURMAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "GEORGIANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "TRAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "CLEVELAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LIANA GANTT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ADRIAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FRANCOISE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOVAN KENT" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"tony"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4252, - "total_relation": "eq", - "hits": [ - { - "_id": 998183, - "_score": 1532, - "_source": { - "username": "TONA CHOATE" - } - }, - { - "_id": 999284, - "_score": 1532, - "_source": { - "username": "TONA EDMONDS" - } - }, - { - "_id": 932916, - "_score": 1532, - "_source": { - "username": "TONA GROGAN" - } - }, - { - "_id": 924415, - "_score": 1532, - "_source": { - "username": "TONA REYNOSO" - } - }, - { - "_id": 918798, - "_score": 1532, - "_source": { - "username": "TONA KOCH" - } - }, - { - "_id": 973217, - "_score": 1532, - "_source": { - "username": "TONA WINTER" - } - }, - { - "_id": 910284, - "_score": 1532, - "_source": { - "username": "TONA PRENTICE" - } - }, - { - "_id": 943295, - "_score": 1532, - "_source": { - "username": "TONA LAUGHLIN" - } - }, - { - "_id": 988528, - "_score": 1532, - "_source": { - "username": "TONA SUTHERLAND" - } - }, - { - "_id": 928754, - "_score": 1532, - "_source": { - "username": "TONA BARRETT" - } - }, - { - "_id": 916837, - "_score": 1532, - "_source": { - "username": "TONA IVORY" - } - }, - { - "_id": 993840, - "_score": 1532, - "_source": { - "username": "TONA MARQUARDT" - } - }, - { - "_id": 943890, - "_score": 1532, - "_source": { - "username": "TONA ASHE" - } - }, - { - "_id": 988892, - "_score": 1532, - "_source": { - "username": "TONA BOX" - } - }, - { - "_id": 943985, - "_score": 1532, - "_source": { - "username": "TONA DEHART" - } - }, - { - "_id": 971179, - "_score": 1532, - "_source": { - "username": "TONA KOZAK" - } - }, - { - "_id": 981673, - "_score": 1532, - "_source": { - "username": "TONA MCNEILL" - } - }, - { - "_id": 865983, - "_score": 1532, - "_source": { - "username": "TONA PETTIGREW" - } - }, - { - "_id": 982220, - "_score": 1532, - "_source": { - "username": "TONA ARNDT" - } - }, - { - "_id": 947393, - "_score": 1532, - "_source": { - "username": "TONA SEELEY" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMITH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 7170, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999928, - "_score": 1, - "_source": { - "username": "BONITA LEONG" - } - }, - { - "_id": 999858, - "_score": 1, - "_source": { - "username": "TONITA GEARY" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999721, - "_score": 1, - "_source": { - "username": "TONITA ESTRADA" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999249, - "_score": 1, - "_source": { - "username": "MINH LANDERS" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998690, - "_score": 1, - "_source": { - "username": "MITCHELL SEITZ" - } - }, - { - "_id": 998580, - "_score": 1, - "_source": { - "username": "RAMONITA SWISHER" - } - }, - { - "_id": 998565, - "_score": 1, - "_source": { - "username": "RAMONITA MAYO" - } - }, - { - "_id": 998538, - "_score": 1, - "_source": { - "username": "ELSA SEITZ" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997814, - "_score": 1, - "_source": { - "username": "MINH GOODWIN" - } - }, - { - "_id": 997587, - "_score": 1, - "_source": { - "username": "RAMONITA GIBBONS" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMYTH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 9965, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999498, - "_score": 1, - "_source": { - "username": "DORTHY DUCKWORTH" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999196, - "_score": 1, - "_source": { - "username": "HEATH MCNAMARA" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 999012, - "_score": 1, - "_source": { - "username": "HEATHER HAMMOCK" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998676, - "_score": 1, - "_source": { - "username": "BURT WOODWORTH" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 998220, - "_score": 1, - "_source": { - "username": "MORA WENTWORTH" - } - }, - { - "_id": 998083, - "_score": 1, - "_source": { - "username": "EDMUND ASHWORTH" - } - }, - { - "_id": 997999, - "_score": 1, - "_source": { - "username": "EDYTH CARLISLE" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - }, - { - "_id": 997543, - "_score": 1, - "_source": { - "username": "HEATHER CLAUSEN" - } - }, - { - "_id": 997395, - "_score": 1, - "_source": { - "username": "JON ASHWORTH" - } - }, - { - "_id": 997286, - "_score": 1, - "_source": { - "username": "JOI FARNSWORTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"layouts":"us,ru"}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":0}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "jordan" - }, - { - "query": "joe" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "joshua" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":1,"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1,"layouts":"","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":2,"layouts":"us,ru","append":1,"prepend":1,"expansion_len":2}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"gr","options":{"fuzziness":1,"layouts":"ru","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "gregory" - }, - { - "query": "grover" - }, - { - "query": "grant" - }, - { - "query": "grady" - }, - { - "query": "gracia" - }, - { - "query": "gregg" - }, - { - "query": "grace" - }, - { - "query": "graham" - }, - { - "query": "griffin" - }, - { - "query": "montenegro" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", + - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/plugins/ โœ… OK: 0 โŒ Failed: 1 โณ Duration: 20s ๐Ÿ‘‰ Check Action Results for commit c6b737b Failed tests:

test/clt-tests/plugins/test-enable-disable-buddy-plugin.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:55:42.752 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 07:55:42.753 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 07:55:42.753 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:55:42.753 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:55:42.753 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:55:42.753 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:55:42.769 2024] [27] prereading 0 tables + [Mon Oct 28 07:55:42.769 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 07:55:42.773 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:55:42.773 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'show' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'knn' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' + ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/replication/ โœ… OK: 1 โŒ Failed: 1 โณ Duration: 36s ๐Ÿ‘‰ Check Action Results for commit c6b737b Failed tests:

test/clt-tests/replication/replication-test.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=1 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=3 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';" โ€“โ€“โ€“ output โ€“โ€“โ€“ +-----------------------------+--------+ | Counter | Value | +-----------------------------+--------+ | cluster_replication_indexes | testrt | +-----------------------------+--------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "REPLACE INTO replication:testrt SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994;"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ - 0 + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994' + 1 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/buddy/ โœ… OK: 0 โŒ Failed: 4 โณ Duration: 111s ๐Ÿ‘‰ Check Action Results for commit c6b737b Failed tests:

test/clt-tests/buddy/test-fuzzy-search-negative.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:56:05.168 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 07:56:05.168 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 07:56:05.169 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:56:05.169 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:56:05.169 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:56:05.169 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:56:05.184 2024] [27] prereading 0 tables + [Mon Oct 28 07:56:05.184 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 07:56:05.188 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:56:05.188 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') OPTION fuzzy=-1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ ERROR 1064 (42000) at line 1: P01: syntax error, unexpected '-' near '-1' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') OPTION fuzzy='0';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') OPTION fuzzy='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') OPTION fuzzy=a;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') OPTION fuzzy=@;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Failed to parse query + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: no such table 'non_existing_table' + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('hello') OPTION fuzzy=1 layouts='';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid options in query string, make sure they are separated by commas + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' ```
test/clt-tests/buddy/test-fuzzy-search-non-min-infix-len.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:56:23.024 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 07:56:23.025 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 07:56:23.025 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:56:23.025 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:56:23.025 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:56:23.025 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:56:23.040 2024] [27] prereading 0 tables + [Mon Oct 28 07:56:23.040 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 07:56:23.044 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:56:23.044 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table test (id bigint, value text);" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Fuzzy search requires min_infix_len to be set + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ALTER TABLE test min_infix_len='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 30; mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' + ```
test/clt-tests/buddy/test-fuzzy-search.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:57:03.966 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 07:57:03.967 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 07:57:03.967 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:57:03.967 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:57:03.967 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:57:03.967 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:57:03.983 2024] [27] prereading 0 tables + [Mon Oct 28 07:57:03.983 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 07:57:03.987 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:57:03.987 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 195 | BRICE MULLIN | - | 306 | GRICELDA SKELTON | - | 362 | LAURICE SOLIZ | - | 477 | ERICH LLAMAS | - | 489 | LATRICE MANCILLA | - | 607 | MAURICE PRATHER | - | 658 | BRICE OLIVARES | - | 696 | PATRICE WOOD | - | 821 | JUNITA RICHARD | - | 834 | AUREA RICO | - | 853 | ROXANNE BRICE | - | 1121 | RICH MOLL | - | 1133 | JOELLA RICHARD | - | 1159 | MINDY HEINRICH | - | 1223 | YADIRA RICHARDSON | - | 1378 | BRICE ALLMAN | - | 1573 | RICO VALENZUELA | - | 1601 | BEATRICE LOVE | - | 1821 | RICHELLE ROE | - | 2135 | CHIQUITA RICHTER | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+----------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+----------------------+ - | 674 | CONCEPTION ABERNATHY | - | 963 | BERNARDINA OSHEA | - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - | 2237 | JUDI BERNAL | - | 2445 | MERNA GAITHER | - | 3064 | BERNADINE HIBBARD | - | 3194 | BERNADETTE SHELTON | - | 3687 | VERNA GASTON | - | 3780 | BERNARDINE WILKINS | - | 4369 | ERNA VITALE | - | 4636 | TARSHA HERNANDEZ | - | 4661 | FERNANDO HOUCK | - | 5043 | CONSTANCE ABERNATHY | - | 5579 | LAVERNA GORMAN | - | 5581 | FERNANDE ISRAEL | - | 5797 | LAVERNA STORM | - +------+----------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('ANT') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 7 | DAMIAN SOMERS | - | 15 | TAMI WHELAN | - | 18 | DARCY SANDBERG | - | 19 | RANEE BROUGHTON | - | 20 | STEPHEN ALLMAN | - | 29 | AMANDA KEY | - | 36 | ELFRIEDA HANKS | - | 40 | NANNIE WILLINGHAM | - | 41 | YOULANDA TROUT | - | 43 | ANTHONY SMOOT | - | 46 | FRANCIE BUNDY | - | 50 | LATASHA POLAND | - | 52 | SHEMEKA DURAND | - | 53 | LATANYA ARNDT | - | 55 | JANELLE LASTER | - | 56 | NANNIE HANNON | - | 57 | GRANVILLE VALDEZ | - | 58 | DEDE SPANN | - | 59 | DANIEL MERRITT | - | 62 | SAUL HOWLAND | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('tony') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+--------------------+ - | 117 | ANTONIA VANWINKLE | - | 219 | ANTONIA MELGAR | - | 390 | KARYL TONEY | - | 760 | TONYA SHERRILL | - | 1526 | LEONE TONEY | - | 2131 | TONIA RAPP | - | 2194 | TONIE HOANG | - | 2332 | LATONIA VILLASENOR | - | 2356 | TONIE BARNHILL | - | 2429 | TONIA BOSTICK | - | 2583 | TONI SPENCE | - | 2724 | ANTONIETTA CINTRON | - | 2880 | ANTONINA HASKELL | - | 3317 | TONY DUPRE | - | 3581 | ANTONIETTA BAEZ | - | 3857 | TONEY SCHOEN | - | 4365 | ROCHEL TONEY | - | 4607 | ANTONIA DRISCOLL | - | 4656 | TONYA PARRIS | - | 4799 | TONY WEISS | - +------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999498 | DORTHY DUCKWORTH | - | 999263 | RUTHANN GREENE | - | 999196 | HEATH MCNAMARA | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 999012 | HEATHER HAMMOCK | - | 998892 | IRWIN SOUTHARD | - | 998676 | BURT WOODWORTH | - | 998525 | SCOTT CARRION | - | 998220 | MORA WENTWORTH | - | 998083 | EDMUND ASHWORTH | - | 997999 | EDYTH CARLISLE | - | 997944 | RUTHE SCHENK | - | 997557 | ARTIE SOUTH | - | 997543 | HEATHER CLAUSEN | - | 997395 | JON ASHWORTH | - | 997286 | JOI FARNSWORTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy="1";" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+------------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+------------------------+ - | 999960 | JONELL ENRIGHT | - | 999931 | JONELL NIX | - | 999925 | JONAH BURNSIDE | - | 999921 | LAVONNA JONAS | - | 999859 | JOHNETTA DO | - | 999551 | JOHNNY CARNES | - | 999547 | JOHNATHAN PEPPER | - | 999508 | JOHNATHAN STUBBLEFIELD | - | 999170 | JOHNNY ABRAMS | - | 999032 | AGNUS STJOHN | - | 998834 | SCARLETT JONAS | - | 998797 | JOHNATHON READ | - | 998466 | JOHNSON JEAN | - | 998392 | JOHN BACH | - | 998305 | JOHNNY TAFOYA | - | 998303 | JONG SAUER | - | 998302 | JONATHON DUPRE | - | 998277 | JOHNNIE LOR | - | 998180 | JONA ELROD | - | 998153 | JONG YORK | - +--------+------------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') AND id BETWEEN 10000 AND 20000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +-------+--------------------+ - | 11037 | DESIRE LANE | - | 11055 | LANELLE WATTS | - | 11358 | JANIE CRAWFORD | - | 11391 | JAN LEW | - | 11396 | MELITA LANE | - | 11414 | MARYJANE HOLTZ | - | 11498 | JANN LEDEZMA | - | 11568 | JANETH SELBY | - | 11752 | TRACIE JANKOWSKI | - | 11757 | JANETTE GANTT | - | 11833 | JANELLE DRIGGERS | - | 10027 | ANJANETTE PORTILLO | - | 10055 | JANETTE LYNCH | - | 10068 | JANN HACKETT | - | 10110 | ALEJANDRINA DOWNS | - | 10242 | ALEJANDRINA ZAPATA | - | 10269 | JANNET QUINN | - | 10326 | JANICE APPEL | - | 10385 | JANN CASON | - | 10628 | LANETTE SWAIN | - +-------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') AND id BETWEEN 1000 AND 2000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+---------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+---------------------+ - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - +------+---------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SARA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+------------------+ - | 187 | LARA KIRK | - | 206 | CLARA MORRIS | - | 350 | KLARA DONALDSON | - | 989 | ELAINE SARABIA | - | 1408 | LARA FREDERICK | - | 1660 | SARA GARNER | - | 1819 | KARA CINTRON | - | 1830 | SARAI ESPINAL | - | 2073 | VALENTIN SARABIA | - | 2929 | LARA CINTRON | - | 3044 | KLARA ANDRES | - | 3372 | KLARA NORTON | - | 3740 | CRUZ SARABIA | - | 3779 | RUSSEL LARA | - | 4699 | HEE SARABIA | - | 4932 | KLARA GOODING | - | 5829 | SARAI LINDLEY | - | 5864 | SARAN KNAPP | - | 5917 | SARA WAITE | - | 6634 | CLARA BEALE | - +------+------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 0 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joshua | - | joy | - | joyce | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend, 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness, '' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 2 AS fuzziness, 'us,ru' AS layouts, 1 AS append, 1 AS prepend, 2 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | jose | - | joy | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | albert | - | alexander | - | allen | - | dale | - | dallas | - | donald | - | gale | - | kendall | - | marshall | - | walter | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('mi', 'name', 0 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | ami | - | britni | - | brittni | - | cami | - | choi | - | darci | - | eleni | - | jami | - | jani | - | jeni | - | joi | - | kaci | - | kami | - | kimi | - | laci | - | lani | - | luci | - | mancini | - | marci | - | martini | - | melani | - | muoi | - | nanci | - | neomi | - | noemi | - | nohemi | - | ricci | - | shani | - | staci | - | tammi | - | toi | - | tomi | - | traci | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | chang | - | chi | - | chung | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | page | - | paige | - | palma | - | palmer | - | paris | - | parker | - | pat | - | patrick | - | paul | - | paz | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('gr', 'name', 1 AS fuzziness, 'ru' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | grace | - | gracia | - | grady | - | graham | - | grant | - | gregg | - | gregory | - | griffin | - | grover | - | montenegro | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | query | + - +-----------+ - | some | - | something | - +-----------+ - ```
test/clt-tests/buddy/test-fuzzy-autocomplete-http.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 07:55:43.989 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 07:55:43.990 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 07:55:43.990 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 07:55:43.990 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 07:55:43.990 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 07:55:43.990 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 07:55:44.004 2024] [27] prereading 0 tables + [Mon Oct 28 07:55:44.004 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 07:55:44.008 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 07:55:44.008 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"RICH"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 8380, - "total_relation": "eq", - "hits": [ - { - "_id": 832342, - "_score": %{NUMBER}, - "_source": { - "username": "RICO RICE" - } - }, - { - "_id": 768099, - "_score": 1562, - "_source": { - "username": "BRICE RICH" - } - }, - { - "_id": 989140, - "_score": 1549, - "_source": { - "username": "LEVI RICO" - } - }, - { - "_id": 869271, - "_score": 1549, - "_source": { - "username": "MARQUITA RICO" - } - }, - { - "_id": 932341, - "_score": 1549, - "_source": { - "username": "JERAMY RICO" - } - }, - { - "_id": 989530, - "_score": 1549, - "_source": { - "username": "RICO RAWLINGS" - } - }, - { - "_id": 939666, - "_score": 1549, - "_source": { - "username": "LAURENE RICO" - } - }, - { - "_id": 944740, - "_score": 1549, - "_source": { - "username": "JOSHUA RICO" - } - }, - { - "_id": 979783, - "_score": 1549, - "_source": { - "username": "RICO SWANK" - } - }, - { - "_id": 929967, - "_score": 1549, - "_source": { - "username": "BIANCA RICO" - } - }, - { - "_id": 914988, - "_score": 1549, - "_source": { - "username": "SUSANNE RICO" - } - }, - { - "_id": 911989, - "_score": 1549, - "_source": { - "username": "RICO IVY" - } - }, - { - "_id": 975060, - "_score": 1549, - "_source": { - "username": "RICO BRENNER" - } - }, - { - "_id": 921107, - "_score": 1549, - "_source": { - "username": "KENYETTA RICO" - } - }, - { - "_id": 996127, - "_score": 1549, - "_source": { - "username": "RICO WHITLOCK" - } - }, - { - "_id": 918295, - "_score": 1549, - "_source": { - "username": "MARLEN RICO" - } - }, - { - "_id": 933392, - "_score": 1549, - "_source": { - "username": "AN RICO" - } - }, - { - "_id": 924527, - "_score": 1549, - "_source": { - "username": "RICO BOEHM" - } - }, - { - "_id": 995638, - "_score": 1549, - "_source": { - "username": "RICO JAEGER" - } - }, - { - "_id": 950970, - "_score": 1549, - "_source": { - "username": "RICO TOTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"EBGRNA"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4329, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "BERNARDA BERNAL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WEIR" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA CHEUNG" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GRAFF" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA PUGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WOODWORTH" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA REICHERT" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LATHAM" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA FRANZ" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HAMLIN" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA POSTON" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HOOPER" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WITTE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ISBELL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA VEGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA MOREY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GUILLORY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LOUIE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GILL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ABRAHAM" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"ANT"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 249348, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FERDINAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "NATHANIAL KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANGELO KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANTONETTE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANN DENTON" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LANDON KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNE DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "STEPHAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "THURMAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "GEORGIANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "TRAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "CLEVELAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LIANA GANTT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ADRIAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FRANCOISE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOVAN KENT" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"tony"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4252, - "total_relation": "eq", - "hits": [ - { - "_id": 998183, - "_score": 1532, - "_source": { - "username": "TONA CHOATE" - } - }, - { - "_id": 999284, - "_score": 1532, - "_source": { - "username": "TONA EDMONDS" - } - }, - { - "_id": 932916, - "_score": 1532, - "_source": { - "username": "TONA GROGAN" - } - }, - { - "_id": 924415, - "_score": 1532, - "_source": { - "username": "TONA REYNOSO" - } - }, - { - "_id": 918798, - "_score": 1532, - "_source": { - "username": "TONA KOCH" - } - }, - { - "_id": 973217, - "_score": 1532, - "_source": { - "username": "TONA WINTER" - } - }, - { - "_id": 910284, - "_score": 1532, - "_source": { - "username": "TONA PRENTICE" - } - }, - { - "_id": 943295, - "_score": 1532, - "_source": { - "username": "TONA LAUGHLIN" - } - }, - { - "_id": 988528, - "_score": 1532, - "_source": { - "username": "TONA SUTHERLAND" - } - }, - { - "_id": 928754, - "_score": 1532, - "_source": { - "username": "TONA BARRETT" - } - }, - { - "_id": 916837, - "_score": 1532, - "_source": { - "username": "TONA IVORY" - } - }, - { - "_id": 993840, - "_score": 1532, - "_source": { - "username": "TONA MARQUARDT" - } - }, - { - "_id": 943890, - "_score": 1532, - "_source": { - "username": "TONA ASHE" - } - }, - { - "_id": 988892, - "_score": 1532, - "_source": { - "username": "TONA BOX" - } - }, - { - "_id": 943985, - "_score": 1532, - "_source": { - "username": "TONA DEHART" - } - }, - { - "_id": 971179, - "_score": 1532, - "_source": { - "username": "TONA KOZAK" - } - }, - { - "_id": 981673, - "_score": 1532, - "_source": { - "username": "TONA MCNEILL" - } - }, - { - "_id": 865983, - "_score": 1532, - "_source": { - "username": "TONA PETTIGREW" - } - }, - { - "_id": 982220, - "_score": 1532, - "_source": { - "username": "TONA ARNDT" - } - }, - { - "_id": 947393, - "_score": 1532, - "_source": { - "username": "TONA SEELEY" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMITH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 7170, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999928, - "_score": 1, - "_source": { - "username": "BONITA LEONG" - } - }, - { - "_id": 999858, - "_score": 1, - "_source": { - "username": "TONITA GEARY" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999721, - "_score": 1, - "_source": { - "username": "TONITA ESTRADA" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999249, - "_score": 1, - "_source": { - "username": "MINH LANDERS" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998690, - "_score": 1, - "_source": { - "username": "MITCHELL SEITZ" - } - }, - { - "_id": 998580, - "_score": 1, - "_source": { - "username": "RAMONITA SWISHER" - } - }, - { - "_id": 998565, - "_score": 1, - "_source": { - "username": "RAMONITA MAYO" - } - }, - { - "_id": 998538, - "_score": 1, - "_source": { - "username": "ELSA SEITZ" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997814, - "_score": 1, - "_source": { - "username": "MINH GOODWIN" - } - }, - { - "_id": 997587, - "_score": 1, - "_source": { - "username": "RAMONITA GIBBONS" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMYTH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 9965, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999498, - "_score": 1, - "_source": { - "username": "DORTHY DUCKWORTH" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999196, - "_score": 1, - "_source": { - "username": "HEATH MCNAMARA" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 999012, - "_score": 1, - "_source": { - "username": "HEATHER HAMMOCK" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998676, - "_score": 1, - "_source": { - "username": "BURT WOODWORTH" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 998220, - "_score": 1, - "_source": { - "username": "MORA WENTWORTH" - } - }, - { - "_id": 998083, - "_score": 1, - "_source": { - "username": "EDMUND ASHWORTH" - } - }, - { - "_id": 997999, - "_score": 1, - "_source": { - "username": "EDYTH CARLISLE" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - }, - { - "_id": 997543, - "_score": 1, - "_source": { - "username": "HEATHER CLAUSEN" - } - }, - { - "_id": 997395, - "_score": 1, - "_source": { - "username": "JON ASHWORTH" - } - }, - { - "_id": 997286, - "_score": 1, - "_source": { - "username": "JOI FARNSWORTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"layouts":"us,ru"}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":0}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "jordan" - }, - { - "query": "joe" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "joshua" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":1,"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1,"layouts":"","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":2,"layouts":"us,ru","append":1,"prepend":1,"expansion_len":2}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"gr","options":{"fuzziness":1,"layouts":"ru","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "gregory" - }, - { - "query": "grover" - }, - { - "query": "grant" - }, - { - "query": "grady" - }, - { - "query": "gracia" - }, - { - "query": "gregg" - }, - { - "query": "grace" - }, - { - "query": "graham" - }, - { - "query": "griffin" - }, - { - "query": "montenegro" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", + - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/plugins/ โœ… OK: 0 โŒ Failed: 1 โณ Duration: 22s ๐Ÿ‘‰ Check Action Results for commit 0d7d1a5 Failed tests:

test/clt-tests/plugins/test-enable-disable-buddy-plugin.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:22:52.891 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:22:52.891 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:22:52.892 2024] [25] starting daemon version '6.3.7 0d7d1a500@24102807 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:22:52.892 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:22:52.892 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:22:52.892 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:22:52.906 2024] [27] prereading 0 tables + [Mon Oct 28 08:22:52.906 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 08:22:52.910 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:22:52.910 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'show' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'knn' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' + ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/replication/ โœ… OK: 1 โŒ Failed: 1 โณ Duration: 36s ๐Ÿ‘‰ Check Action Results for commit 0d7d1a5 Failed tests:

test/clt-tests/replication/replication-test.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=1 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=3 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';" โ€“โ€“โ€“ output โ€“โ€“โ€“ +-----------------------------+--------+ | Counter | Value | +-----------------------------+--------+ | cluster_replication_indexes | testrt | +-----------------------------+--------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "REPLACE INTO replication:testrt SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994;"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ - 0 + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994' + 1 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/buddy/ โœ… OK: 0 โŒ Failed: 4 โณ Duration: 111s ๐Ÿ‘‰ Check Action Results for commit 0d7d1a5 Failed tests:

test/clt-tests/buddy/test-fuzzy-search-negative.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:23:12.661 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:23:12.661 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:23:12.662 2024] [25] starting daemon version '6.3.7 0d7d1a500@24102807 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:23:12.662 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:23:12.662 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:23:12.662 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:23:12.677 2024] [27] prereading 0 tables + [Mon Oct 28 08:23:12.677 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 08:23:12.681 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:23:12.681 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') OPTION fuzzy=-1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ ERROR 1064 (42000) at line 1: P01: syntax error, unexpected '-' near '-1' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') OPTION fuzzy='0';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') OPTION fuzzy='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') OPTION fuzzy=a;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') OPTION fuzzy=@;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Failed to parse query + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: no such table 'non_existing_table' + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('hello') OPTION fuzzy=1 layouts='';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid options in query string, make sure they are separated by commas + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' ```
test/clt-tests/buddy/test-fuzzy-search-non-min-infix-len.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:23:30.666 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:23:30.667 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:23:30.667 2024] [25] starting daemon version '6.3.7 0d7d1a500@24102807 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:23:30.667 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:23:30.667 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:23:30.667 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:23:30.682 2024] [27] prereading 0 tables + [Mon Oct 28 08:23:30.682 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 08:23:30.686 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:23:30.686 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table test (id bigint, value text);" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Fuzzy search requires min_infix_len to be set + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ALTER TABLE test min_infix_len='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 30; mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' + ```
test/clt-tests/buddy/test-fuzzy-search.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:24:11.616 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:24:11.617 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:24:11.617 2024] [25] starting daemon version '6.3.7 0d7d1a500@24102807 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:24:11.617 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:24:11.617 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:24:11.617 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:24:11.631 2024] [27] prereading 0 tables + [Mon Oct 28 08:24:11.631 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 08:24:11.635 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:24:11.635 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 195 | BRICE MULLIN | - | 306 | GRICELDA SKELTON | - | 362 | LAURICE SOLIZ | - | 477 | ERICH LLAMAS | - | 489 | LATRICE MANCILLA | - | 607 | MAURICE PRATHER | - | 658 | BRICE OLIVARES | - | 696 | PATRICE WOOD | - | 821 | JUNITA RICHARD | - | 834 | AUREA RICO | - | 853 | ROXANNE BRICE | - | 1121 | RICH MOLL | - | 1133 | JOELLA RICHARD | - | 1159 | MINDY HEINRICH | - | 1223 | YADIRA RICHARDSON | - | 1378 | BRICE ALLMAN | - | 1573 | RICO VALENZUELA | - | 1601 | BEATRICE LOVE | - | 1821 | RICHELLE ROE | - | 2135 | CHIQUITA RICHTER | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+----------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+----------------------+ - | 674 | CONCEPTION ABERNATHY | - | 963 | BERNARDINA OSHEA | - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - | 2237 | JUDI BERNAL | - | 2445 | MERNA GAITHER | - | 3064 | BERNADINE HIBBARD | - | 3194 | BERNADETTE SHELTON | - | 3687 | VERNA GASTON | - | 3780 | BERNARDINE WILKINS | - | 4369 | ERNA VITALE | - | 4636 | TARSHA HERNANDEZ | - | 4661 | FERNANDO HOUCK | - | 5043 | CONSTANCE ABERNATHY | - | 5579 | LAVERNA GORMAN | - | 5581 | FERNANDE ISRAEL | - | 5797 | LAVERNA STORM | - +------+----------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('ANT') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 7 | DAMIAN SOMERS | - | 15 | TAMI WHELAN | - | 18 | DARCY SANDBERG | - | 19 | RANEE BROUGHTON | - | 20 | STEPHEN ALLMAN | - | 29 | AMANDA KEY | - | 36 | ELFRIEDA HANKS | - | 40 | NANNIE WILLINGHAM | - | 41 | YOULANDA TROUT | - | 43 | ANTHONY SMOOT | - | 46 | FRANCIE BUNDY | - | 50 | LATASHA POLAND | - | 52 | SHEMEKA DURAND | - | 53 | LATANYA ARNDT | - | 55 | JANELLE LASTER | - | 56 | NANNIE HANNON | - | 57 | GRANVILLE VALDEZ | - | 58 | DEDE SPANN | - | 59 | DANIEL MERRITT | - | 62 | SAUL HOWLAND | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('tony') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+--------------------+ - | 117 | ANTONIA VANWINKLE | - | 219 | ANTONIA MELGAR | - | 390 | KARYL TONEY | - | 760 | TONYA SHERRILL | - | 1526 | LEONE TONEY | - | 2131 | TONIA RAPP | - | 2194 | TONIE HOANG | - | 2332 | LATONIA VILLASENOR | - | 2356 | TONIE BARNHILL | - | 2429 | TONIA BOSTICK | - | 2583 | TONI SPENCE | - | 2724 | ANTONIETTA CINTRON | - | 2880 | ANTONINA HASKELL | - | 3317 | TONY DUPRE | - | 3581 | ANTONIETTA BAEZ | - | 3857 | TONEY SCHOEN | - | 4365 | ROCHEL TONEY | - | 4607 | ANTONIA DRISCOLL | - | 4656 | TONYA PARRIS | - | 4799 | TONY WEISS | - +------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999498 | DORTHY DUCKWORTH | - | 999263 | RUTHANN GREENE | - | 999196 | HEATH MCNAMARA | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 999012 | HEATHER HAMMOCK | - | 998892 | IRWIN SOUTHARD | - | 998676 | BURT WOODWORTH | - | 998525 | SCOTT CARRION | - | 998220 | MORA WENTWORTH | - | 998083 | EDMUND ASHWORTH | - | 997999 | EDYTH CARLISLE | - | 997944 | RUTHE SCHENK | - | 997557 | ARTIE SOUTH | - | 997543 | HEATHER CLAUSEN | - | 997395 | JON ASHWORTH | - | 997286 | JOI FARNSWORTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy="1";" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+------------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+------------------------+ - | 999960 | JONELL ENRIGHT | - | 999931 | JONELL NIX | - | 999925 | JONAH BURNSIDE | - | 999921 | LAVONNA JONAS | - | 999859 | JOHNETTA DO | - | 999551 | JOHNNY CARNES | - | 999547 | JOHNATHAN PEPPER | - | 999508 | JOHNATHAN STUBBLEFIELD | - | 999170 | JOHNNY ABRAMS | - | 999032 | AGNUS STJOHN | - | 998834 | SCARLETT JONAS | - | 998797 | JOHNATHON READ | - | 998466 | JOHNSON JEAN | - | 998392 | JOHN BACH | - | 998305 | JOHNNY TAFOYA | - | 998303 | JONG SAUER | - | 998302 | JONATHON DUPRE | - | 998277 | JOHNNIE LOR | - | 998180 | JONA ELROD | - | 998153 | JONG YORK | - +--------+------------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') AND id BETWEEN 10000 AND 20000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +-------+--------------------+ - | 11037 | DESIRE LANE | - | 11055 | LANELLE WATTS | - | 11358 | JANIE CRAWFORD | - | 11391 | JAN LEW | - | 11396 | MELITA LANE | - | 11414 | MARYJANE HOLTZ | - | 11498 | JANN LEDEZMA | - | 11568 | JANETH SELBY | - | 11752 | TRACIE JANKOWSKI | - | 11757 | JANETTE GANTT | - | 11833 | JANELLE DRIGGERS | - | 10027 | ANJANETTE PORTILLO | - | 10055 | JANETTE LYNCH | - | 10068 | JANN HACKETT | - | 10110 | ALEJANDRINA DOWNS | - | 10242 | ALEJANDRINA ZAPATA | - | 10269 | JANNET QUINN | - | 10326 | JANICE APPEL | - | 10385 | JANN CASON | - | 10628 | LANETTE SWAIN | - +-------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') AND id BETWEEN 1000 AND 2000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+---------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+---------------------+ - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - +------+---------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SARA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+------------------+ - | 187 | LARA KIRK | - | 206 | CLARA MORRIS | - | 350 | KLARA DONALDSON | - | 989 | ELAINE SARABIA | - | 1408 | LARA FREDERICK | - | 1660 | SARA GARNER | - | 1819 | KARA CINTRON | - | 1830 | SARAI ESPINAL | - | 2073 | VALENTIN SARABIA | - | 2929 | LARA CINTRON | - | 3044 | KLARA ANDRES | - | 3372 | KLARA NORTON | - | 3740 | CRUZ SARABIA | - | 3779 | RUSSEL LARA | - | 4699 | HEE SARABIA | - | 4932 | KLARA GOODING | - | 5829 | SARAI LINDLEY | - | 5864 | SARAN KNAPP | - | 5917 | SARA WAITE | - | 6634 | CLARA BEALE | - +------+------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 0 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joshua | - | joy | - | joyce | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend, 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness, '' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 2 AS fuzziness, 'us,ru' AS layouts, 1 AS append, 1 AS prepend, 2 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | jose | - | joy | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | albert | - | alexander | - | allen | - | dale | - | dallas | - | donald | - | gale | - | kendall | - | marshall | - | walter | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('mi', 'name', 0 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | ami | - | britni | - | brittni | - | cami | - | choi | - | darci | - | eleni | - | jami | - | jani | - | jeni | - | joi | - | kaci | - | kami | - | kimi | - | laci | - | lani | - | luci | - | mancini | - | marci | - | martini | - | melani | - | muoi | - | nanci | - | neomi | - | noemi | - | nohemi | - | ricci | - | shani | - | staci | - | tammi | - | toi | - | tomi | - | traci | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | chang | - | chi | - | chung | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | page | - | paige | - | palma | - | palmer | - | paris | - | parker | - | pat | - | patrick | - | paul | - | paz | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('gr', 'name', 1 AS fuzziness, 'ru' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | grace | - | gracia | - | grady | - | graham | - | grant | - | gregg | - | gregory | - | griffin | - | grover | - | montenegro | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | query | + - +-----------+ - | some | - | something | - +-----------+ - ```
test/clt-tests/buddy/test-fuzzy-autocomplete-http.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:22:51.242 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:22:51.242 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:22:51.243 2024] [25] starting daemon version '6.3.7 0d7d1a500@24102807 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:22:51.243 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:22:51.243 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:22:51.243 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:22:51.257 2024] [27] prereading 0 tables + [Mon Oct 28 08:22:51.257 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 08:22:51.261 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:22:51.261 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"RICH"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 8380, - "total_relation": "eq", - "hits": [ - { - "_id": 832342, - "_score": %{NUMBER}, - "_source": { - "username": "RICO RICE" - } - }, - { - "_id": 768099, - "_score": 1562, - "_source": { - "username": "BRICE RICH" - } - }, - { - "_id": 989140, - "_score": 1549, - "_source": { - "username": "LEVI RICO" - } - }, - { - "_id": 869271, - "_score": 1549, - "_source": { - "username": "MARQUITA RICO" - } - }, - { - "_id": 932341, - "_score": 1549, - "_source": { - "username": "JERAMY RICO" - } - }, - { - "_id": 989530, - "_score": 1549, - "_source": { - "username": "RICO RAWLINGS" - } - }, - { - "_id": 939666, - "_score": 1549, - "_source": { - "username": "LAURENE RICO" - } - }, - { - "_id": 944740, - "_score": 1549, - "_source": { - "username": "JOSHUA RICO" - } - }, - { - "_id": 979783, - "_score": 1549, - "_source": { - "username": "RICO SWANK" - } - }, - { - "_id": 929967, - "_score": 1549, - "_source": { - "username": "BIANCA RICO" - } - }, - { - "_id": 914988, - "_score": 1549, - "_source": { - "username": "SUSANNE RICO" - } - }, - { - "_id": 911989, - "_score": 1549, - "_source": { - "username": "RICO IVY" - } - }, - { - "_id": 975060, - "_score": 1549, - "_source": { - "username": "RICO BRENNER" - } - }, - { - "_id": 921107, - "_score": 1549, - "_source": { - "username": "KENYETTA RICO" - } - }, - { - "_id": 996127, - "_score": 1549, - "_source": { - "username": "RICO WHITLOCK" - } - }, - { - "_id": 918295, - "_score": 1549, - "_source": { - "username": "MARLEN RICO" - } - }, - { - "_id": 933392, - "_score": 1549, - "_source": { - "username": "AN RICO" - } - }, - { - "_id": 924527, - "_score": 1549, - "_source": { - "username": "RICO BOEHM" - } - }, - { - "_id": 995638, - "_score": 1549, - "_source": { - "username": "RICO JAEGER" - } - }, - { - "_id": 950970, - "_score": 1549, - "_source": { - "username": "RICO TOTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"EBGRNA"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4329, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "BERNARDA BERNAL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WEIR" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA CHEUNG" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GRAFF" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA PUGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WOODWORTH" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA REICHERT" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LATHAM" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA FRANZ" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HAMLIN" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA POSTON" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HOOPER" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WITTE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ISBELL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA VEGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA MOREY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GUILLORY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LOUIE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GILL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ABRAHAM" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"ANT"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 249348, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FERDINAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "NATHANIAL KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANGELO KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANTONETTE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANN DENTON" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LANDON KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNE DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "STEPHAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "THURMAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "GEORGIANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "TRAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "CLEVELAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LIANA GANTT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ADRIAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FRANCOISE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOVAN KENT" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"tony"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4252, - "total_relation": "eq", - "hits": [ - { - "_id": 998183, - "_score": 1532, - "_source": { - "username": "TONA CHOATE" - } - }, - { - "_id": 999284, - "_score": 1532, - "_source": { - "username": "TONA EDMONDS" - } - }, - { - "_id": 932916, - "_score": 1532, - "_source": { - "username": "TONA GROGAN" - } - }, - { - "_id": 924415, - "_score": 1532, - "_source": { - "username": "TONA REYNOSO" - } - }, - { - "_id": 918798, - "_score": 1532, - "_source": { - "username": "TONA KOCH" - } - }, - { - "_id": 973217, - "_score": 1532, - "_source": { - "username": "TONA WINTER" - } - }, - { - "_id": 910284, - "_score": 1532, - "_source": { - "username": "TONA PRENTICE" - } - }, - { - "_id": 943295, - "_score": 1532, - "_source": { - "username": "TONA LAUGHLIN" - } - }, - { - "_id": 988528, - "_score": 1532, - "_source": { - "username": "TONA SUTHERLAND" - } - }, - { - "_id": 928754, - "_score": 1532, - "_source": { - "username": "TONA BARRETT" - } - }, - { - "_id": 916837, - "_score": 1532, - "_source": { - "username": "TONA IVORY" - } - }, - { - "_id": 993840, - "_score": 1532, - "_source": { - "username": "TONA MARQUARDT" - } - }, - { - "_id": 943890, - "_score": 1532, - "_source": { - "username": "TONA ASHE" - } - }, - { - "_id": 988892, - "_score": 1532, - "_source": { - "username": "TONA BOX" - } - }, - { - "_id": 943985, - "_score": 1532, - "_source": { - "username": "TONA DEHART" - } - }, - { - "_id": 971179, - "_score": 1532, - "_source": { - "username": "TONA KOZAK" - } - }, - { - "_id": 981673, - "_score": 1532, - "_source": { - "username": "TONA MCNEILL" - } - }, - { - "_id": 865983, - "_score": 1532, - "_source": { - "username": "TONA PETTIGREW" - } - }, - { - "_id": 982220, - "_score": 1532, - "_source": { - "username": "TONA ARNDT" - } - }, - { - "_id": 947393, - "_score": 1532, - "_source": { - "username": "TONA SEELEY" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMITH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 7170, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999928, - "_score": 1, - "_source": { - "username": "BONITA LEONG" - } - }, - { - "_id": 999858, - "_score": 1, - "_source": { - "username": "TONITA GEARY" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999721, - "_score": 1, - "_source": { - "username": "TONITA ESTRADA" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999249, - "_score": 1, - "_source": { - "username": "MINH LANDERS" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998690, - "_score": 1, - "_source": { - "username": "MITCHELL SEITZ" - } - }, - { - "_id": 998580, - "_score": 1, - "_source": { - "username": "RAMONITA SWISHER" - } - }, - { - "_id": 998565, - "_score": 1, - "_source": { - "username": "RAMONITA MAYO" - } - }, - { - "_id": 998538, - "_score": 1, - "_source": { - "username": "ELSA SEITZ" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997814, - "_score": 1, - "_source": { - "username": "MINH GOODWIN" - } - }, - { - "_id": 997587, - "_score": 1, - "_source": { - "username": "RAMONITA GIBBONS" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMYTH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 9965, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999498, - "_score": 1, - "_source": { - "username": "DORTHY DUCKWORTH" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999196, - "_score": 1, - "_source": { - "username": "HEATH MCNAMARA" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 999012, - "_score": 1, - "_source": { - "username": "HEATHER HAMMOCK" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998676, - "_score": 1, - "_source": { - "username": "BURT WOODWORTH" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 998220, - "_score": 1, - "_source": { - "username": "MORA WENTWORTH" - } - }, - { - "_id": 998083, - "_score": 1, - "_source": { - "username": "EDMUND ASHWORTH" - } - }, - { - "_id": 997999, - "_score": 1, - "_source": { - "username": "EDYTH CARLISLE" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - }, - { - "_id": 997543, - "_score": 1, - "_source": { - "username": "HEATHER CLAUSEN" - } - }, - { - "_id": 997395, - "_score": 1, - "_source": { - "username": "JON ASHWORTH" - } - }, - { - "_id": 997286, - "_score": 1, - "_source": { - "username": "JOI FARNSWORTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"layouts":"us,ru"}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":0}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "jordan" - }, - { - "query": "joe" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "joshua" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":1,"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1,"layouts":"","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":2,"layouts":"us,ru","append":1,"prepend":1,"expansion_len":2}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"gr","options":{"fuzziness":1,"layouts":"ru","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "gregory" - }, - { - "query": "grover" - }, - { - "query": "grant" - }, - { - "query": "grady" - }, - { - "query": "gracia" - }, - { - "query": "gregg" - }, - { - "query": "grace" - }, - { - "query": "graham" - }, - { - "query": "griffin" - }, - { - "query": "montenegro" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", + - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/plugins/ โœ… OK: 0 โŒ Failed: 1 โณ Duration: 31s ๐Ÿ‘‰ Check Action Results for commit 133f6fc Failed tests:

test/clt-tests/plugins/test-enable-disable-buddy-plugin.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:43:04.585 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:43:04.585 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:43:04.586 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:43:04.586 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:43:04.586 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:43:04.586 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:43:04.600 2024] [27] prereading 0 tables + [Mon Oct 28 08:43:04.600 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 08:43:04.604 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:43:04.604 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'show' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'knn' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' + ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/replication/ โœ… OK: 1 โŒ Failed: 1 โณ Duration: 38s ๐Ÿ‘‰ Check Action Results for commit 133f6fc Failed tests:

test/clt-tests/replication/replication-test.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=1 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=3 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';" โ€“โ€“โ€“ output โ€“โ€“โ€“ +-----------------------------+--------+ | Counter | Value | +-----------------------------+--------+ | cluster_replication_indexes | testrt | +-----------------------------+--------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "REPLACE INTO replication:testrt SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994;"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ - 0 + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994' + 1 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/buddy/ โœ… OK: 0 โŒ Failed: 4 โณ Duration: 111s ๐Ÿ‘‰ Check Action Results for commit 133f6fc Failed tests:

test/clt-tests/buddy/test-fuzzy-search-negative.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:43:15.922 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:43:15.922 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:43:15.923 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:43:15.923 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:43:15.923 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:43:15.923 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:43:15.938 2024] [27] prereading 0 tables + [Mon Oct 28 08:43:15.938 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 08:43:15.942 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:43:15.942 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') OPTION fuzzy=-1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ ERROR 1064 (42000) at line 1: P01: syntax error, unexpected '-' near '-1' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') OPTION fuzzy='0';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') OPTION fuzzy='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') OPTION fuzzy=a;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') OPTION fuzzy=@;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Failed to parse query + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: no such table 'non_existing_table' + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('hello') OPTION fuzzy=1 layouts='';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid options in query string, make sure they are separated by commas + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' ```
test/clt-tests/buddy/test-fuzzy-search-non-min-infix-len.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:43:34.039 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:43:34.040 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:43:34.040 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:43:34.040 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:43:34.040 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:43:34.040 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:43:34.055 2024] [27] prereading 0 tables + [Mon Oct 28 08:43:34.055 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 08:43:34.060 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:43:34.060 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table test (id bigint, value text);" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Fuzzy search requires min_infix_len to be set + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ALTER TABLE test min_infix_len='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 30; mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' + ```
test/clt-tests/buddy/test-fuzzy-search.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:44:14.985 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:44:14.986 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:44:14.986 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:44:14.986 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:44:14.986 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:44:14.986 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:44:15.000 2024] [26] prereading 0 tables + [Mon Oct 28 08:44:15.000 2024] [26] preread 0 tables in 0.000 sec + [Mon Oct 28 08:44:15.004 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:44:15.004 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 195 | BRICE MULLIN | - | 306 | GRICELDA SKELTON | - | 362 | LAURICE SOLIZ | - | 477 | ERICH LLAMAS | - | 489 | LATRICE MANCILLA | - | 607 | MAURICE PRATHER | - | 658 | BRICE OLIVARES | - | 696 | PATRICE WOOD | - | 821 | JUNITA RICHARD | - | 834 | AUREA RICO | - | 853 | ROXANNE BRICE | - | 1121 | RICH MOLL | - | 1133 | JOELLA RICHARD | - | 1159 | MINDY HEINRICH | - | 1223 | YADIRA RICHARDSON | - | 1378 | BRICE ALLMAN | - | 1573 | RICO VALENZUELA | - | 1601 | BEATRICE LOVE | - | 1821 | RICHELLE ROE | - | 2135 | CHIQUITA RICHTER | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+----------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+----------------------+ - | 674 | CONCEPTION ABERNATHY | - | 963 | BERNARDINA OSHEA | - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - | 2237 | JUDI BERNAL | - | 2445 | MERNA GAITHER | - | 3064 | BERNADINE HIBBARD | - | 3194 | BERNADETTE SHELTON | - | 3687 | VERNA GASTON | - | 3780 | BERNARDINE WILKINS | - | 4369 | ERNA VITALE | - | 4636 | TARSHA HERNANDEZ | - | 4661 | FERNANDO HOUCK | - | 5043 | CONSTANCE ABERNATHY | - | 5579 | LAVERNA GORMAN | - | 5581 | FERNANDE ISRAEL | - | 5797 | LAVERNA STORM | - +------+----------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('ANT') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 7 | DAMIAN SOMERS | - | 15 | TAMI WHELAN | - | 18 | DARCY SANDBERG | - | 19 | RANEE BROUGHTON | - | 20 | STEPHEN ALLMAN | - | 29 | AMANDA KEY | - | 36 | ELFRIEDA HANKS | - | 40 | NANNIE WILLINGHAM | - | 41 | YOULANDA TROUT | - | 43 | ANTHONY SMOOT | - | 46 | FRANCIE BUNDY | - | 50 | LATASHA POLAND | - | 52 | SHEMEKA DURAND | - | 53 | LATANYA ARNDT | - | 55 | JANELLE LASTER | - | 56 | NANNIE HANNON | - | 57 | GRANVILLE VALDEZ | - | 58 | DEDE SPANN | - | 59 | DANIEL MERRITT | - | 62 | SAUL HOWLAND | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('tony') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+--------------------+ - | 117 | ANTONIA VANWINKLE | - | 219 | ANTONIA MELGAR | - | 390 | KARYL TONEY | - | 760 | TONYA SHERRILL | - | 1526 | LEONE TONEY | - | 2131 | TONIA RAPP | - | 2194 | TONIE HOANG | - | 2332 | LATONIA VILLASENOR | - | 2356 | TONIE BARNHILL | - | 2429 | TONIA BOSTICK | - | 2583 | TONI SPENCE | - | 2724 | ANTONIETTA CINTRON | - | 2880 | ANTONINA HASKELL | - | 3317 | TONY DUPRE | - | 3581 | ANTONIETTA BAEZ | - | 3857 | TONEY SCHOEN | - | 4365 | ROCHEL TONEY | - | 4607 | ANTONIA DRISCOLL | - | 4656 | TONYA PARRIS | - | 4799 | TONY WEISS | - +------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999498 | DORTHY DUCKWORTH | - | 999263 | RUTHANN GREENE | - | 999196 | HEATH MCNAMARA | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 999012 | HEATHER HAMMOCK | - | 998892 | IRWIN SOUTHARD | - | 998676 | BURT WOODWORTH | - | 998525 | SCOTT CARRION | - | 998220 | MORA WENTWORTH | - | 998083 | EDMUND ASHWORTH | - | 997999 | EDYTH CARLISLE | - | 997944 | RUTHE SCHENK | - | 997557 | ARTIE SOUTH | - | 997543 | HEATHER CLAUSEN | - | 997395 | JON ASHWORTH | - | 997286 | JOI FARNSWORTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy="1";" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+------------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+------------------------+ - | 999960 | JONELL ENRIGHT | - | 999931 | JONELL NIX | - | 999925 | JONAH BURNSIDE | - | 999921 | LAVONNA JONAS | - | 999859 | JOHNETTA DO | - | 999551 | JOHNNY CARNES | - | 999547 | JOHNATHAN PEPPER | - | 999508 | JOHNATHAN STUBBLEFIELD | - | 999170 | JOHNNY ABRAMS | - | 999032 | AGNUS STJOHN | - | 998834 | SCARLETT JONAS | - | 998797 | JOHNATHON READ | - | 998466 | JOHNSON JEAN | - | 998392 | JOHN BACH | - | 998305 | JOHNNY TAFOYA | - | 998303 | JONG SAUER | - | 998302 | JONATHON DUPRE | - | 998277 | JOHNNIE LOR | - | 998180 | JONA ELROD | - | 998153 | JONG YORK | - +--------+------------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') AND id BETWEEN 10000 AND 20000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +-------+--------------------+ - | 11037 | DESIRE LANE | - | 11055 | LANELLE WATTS | - | 11358 | JANIE CRAWFORD | - | 11391 | JAN LEW | - | 11396 | MELITA LANE | - | 11414 | MARYJANE HOLTZ | - | 11498 | JANN LEDEZMA | - | 11568 | JANETH SELBY | - | 11752 | TRACIE JANKOWSKI | - | 11757 | JANETTE GANTT | - | 11833 | JANELLE DRIGGERS | - | 10027 | ANJANETTE PORTILLO | - | 10055 | JANETTE LYNCH | - | 10068 | JANN HACKETT | - | 10110 | ALEJANDRINA DOWNS | - | 10242 | ALEJANDRINA ZAPATA | - | 10269 | JANNET QUINN | - | 10326 | JANICE APPEL | - | 10385 | JANN CASON | - | 10628 | LANETTE SWAIN | - +-------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') AND id BETWEEN 1000 AND 2000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+---------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+---------------------+ - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - +------+---------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SARA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+------------------+ - | 187 | LARA KIRK | - | 206 | CLARA MORRIS | - | 350 | KLARA DONALDSON | - | 989 | ELAINE SARABIA | - | 1408 | LARA FREDERICK | - | 1660 | SARA GARNER | - | 1819 | KARA CINTRON | - | 1830 | SARAI ESPINAL | - | 2073 | VALENTIN SARABIA | - | 2929 | LARA CINTRON | - | 3044 | KLARA ANDRES | - | 3372 | KLARA NORTON | - | 3740 | CRUZ SARABIA | - | 3779 | RUSSEL LARA | - | 4699 | HEE SARABIA | - | 4932 | KLARA GOODING | - | 5829 | SARAI LINDLEY | - | 5864 | SARAN KNAPP | - | 5917 | SARA WAITE | - | 6634 | CLARA BEALE | - +------+------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 0 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joshua | - | joy | - | joyce | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend, 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness, '' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 2 AS fuzziness, 'us,ru' AS layouts, 1 AS append, 1 AS prepend, 2 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | jose | - | joy | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | albert | - | alexander | - | allen | - | dale | - | dallas | - | donald | - | gale | - | kendall | - | marshall | - | walter | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('mi', 'name', 0 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | ami | - | britni | - | brittni | - | cami | - | choi | - | darci | - | eleni | - | jami | - | jani | - | jeni | - | joi | - | kaci | - | kami | - | kimi | - | laci | - | lani | - | luci | - | mancini | - | marci | - | martini | - | melani | - | muoi | - | nanci | - | neomi | - | noemi | - | nohemi | - | ricci | - | shani | - | staci | - | tammi | - | toi | - | tomi | - | traci | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | chang | - | chi | - | chung | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | page | - | paige | - | palma | - | palmer | - | paris | - | parker | - | pat | - | patrick | - | paul | - | paz | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('gr', 'name', 1 AS fuzziness, 'ru' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | grace | - | gracia | - | grady | - | graham | - | grant | - | gregg | - | gregory | - | griffin | - | grover | - | montenegro | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | query | + - +-----------+ - | some | - | something | - +-----------+ - ```
test/clt-tests/buddy/test-fuzzy-autocomplete-http.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 08:42:54.334 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 08:42:54.334 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 08:42:54.335 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 08:42:54.335 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 08:42:54.335 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 08:42:54.335 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 08:42:54.350 2024] [27] prereading 0 tables + [Mon Oct 28 08:42:54.350 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 08:42:54.355 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 08:42:54.355 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"RICH"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 8380, - "total_relation": "eq", - "hits": [ - { - "_id": 832342, - "_score": %{NUMBER}, - "_source": { - "username": "RICO RICE" - } - }, - { - "_id": 768099, - "_score": 1562, - "_source": { - "username": "BRICE RICH" - } - }, - { - "_id": 989140, - "_score": 1549, - "_source": { - "username": "LEVI RICO" - } - }, - { - "_id": 869271, - "_score": 1549, - "_source": { - "username": "MARQUITA RICO" - } - }, - { - "_id": 932341, - "_score": 1549, - "_source": { - "username": "JERAMY RICO" - } - }, - { - "_id": 989530, - "_score": 1549, - "_source": { - "username": "RICO RAWLINGS" - } - }, - { - "_id": 939666, - "_score": 1549, - "_source": { - "username": "LAURENE RICO" - } - }, - { - "_id": 944740, - "_score": 1549, - "_source": { - "username": "JOSHUA RICO" - } - }, - { - "_id": 979783, - "_score": 1549, - "_source": { - "username": "RICO SWANK" - } - }, - { - "_id": 929967, - "_score": 1549, - "_source": { - "username": "BIANCA RICO" - } - }, - { - "_id": 914988, - "_score": 1549, - "_source": { - "username": "SUSANNE RICO" - } - }, - { - "_id": 911989, - "_score": 1549, - "_source": { - "username": "RICO IVY" - } - }, - { - "_id": 975060, - "_score": 1549, - "_source": { - "username": "RICO BRENNER" - } - }, - { - "_id": 921107, - "_score": 1549, - "_source": { - "username": "KENYETTA RICO" - } - }, - { - "_id": 996127, - "_score": 1549, - "_source": { - "username": "RICO WHITLOCK" - } - }, - { - "_id": 918295, - "_score": 1549, - "_source": { - "username": "MARLEN RICO" - } - }, - { - "_id": 933392, - "_score": 1549, - "_source": { - "username": "AN RICO" - } - }, - { - "_id": 924527, - "_score": 1549, - "_source": { - "username": "RICO BOEHM" - } - }, - { - "_id": 995638, - "_score": 1549, - "_source": { - "username": "RICO JAEGER" - } - }, - { - "_id": 950970, - "_score": 1549, - "_source": { - "username": "RICO TOTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"EBGRNA"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4329, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "BERNARDA BERNAL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WEIR" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA CHEUNG" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GRAFF" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA PUGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WOODWORTH" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA REICHERT" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LATHAM" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA FRANZ" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HAMLIN" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA POSTON" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HOOPER" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WITTE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ISBELL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA VEGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA MOREY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GUILLORY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LOUIE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GILL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ABRAHAM" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"ANT"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 249348, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FERDINAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "NATHANIAL KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANGELO KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANTONETTE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANN DENTON" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LANDON KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNE DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "STEPHAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "THURMAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "GEORGIANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "TRAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "CLEVELAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LIANA GANTT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ADRIAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FRANCOISE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOVAN KENT" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"tony"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4252, - "total_relation": "eq", - "hits": [ - { - "_id": 998183, - "_score": 1532, - "_source": { - "username": "TONA CHOATE" - } - }, - { - "_id": 999284, - "_score": 1532, - "_source": { - "username": "TONA EDMONDS" - } - }, - { - "_id": 932916, - "_score": 1532, - "_source": { - "username": "TONA GROGAN" - } - }, - { - "_id": 924415, - "_score": 1532, - "_source": { - "username": "TONA REYNOSO" - } - }, - { - "_id": 918798, - "_score": 1532, - "_source": { - "username": "TONA KOCH" - } - }, - { - "_id": 973217, - "_score": 1532, - "_source": { - "username": "TONA WINTER" - } - }, - { - "_id": 910284, - "_score": 1532, - "_source": { - "username": "TONA PRENTICE" - } - }, - { - "_id": 943295, - "_score": 1532, - "_source": { - "username": "TONA LAUGHLIN" - } - }, - { - "_id": 988528, - "_score": 1532, - "_source": { - "username": "TONA SUTHERLAND" - } - }, - { - "_id": 928754, - "_score": 1532, - "_source": { - "username": "TONA BARRETT" - } - }, - { - "_id": 916837, - "_score": 1532, - "_source": { - "username": "TONA IVORY" - } - }, - { - "_id": 993840, - "_score": 1532, - "_source": { - "username": "TONA MARQUARDT" - } - }, - { - "_id": 943890, - "_score": 1532, - "_source": { - "username": "TONA ASHE" - } - }, - { - "_id": 988892, - "_score": 1532, - "_source": { - "username": "TONA BOX" - } - }, - { - "_id": 943985, - "_score": 1532, - "_source": { - "username": "TONA DEHART" - } - }, - { - "_id": 971179, - "_score": 1532, - "_source": { - "username": "TONA KOZAK" - } - }, - { - "_id": 981673, - "_score": 1532, - "_source": { - "username": "TONA MCNEILL" - } - }, - { - "_id": 865983, - "_score": 1532, - "_source": { - "username": "TONA PETTIGREW" - } - }, - { - "_id": 982220, - "_score": 1532, - "_source": { - "username": "TONA ARNDT" - } - }, - { - "_id": 947393, - "_score": 1532, - "_source": { - "username": "TONA SEELEY" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMITH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 7170, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999928, - "_score": 1, - "_source": { - "username": "BONITA LEONG" - } - }, - { - "_id": 999858, - "_score": 1, - "_source": { - "username": "TONITA GEARY" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999721, - "_score": 1, - "_source": { - "username": "TONITA ESTRADA" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999249, - "_score": 1, - "_source": { - "username": "MINH LANDERS" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998690, - "_score": 1, - "_source": { - "username": "MITCHELL SEITZ" - } - }, - { - "_id": 998580, - "_score": 1, - "_source": { - "username": "RAMONITA SWISHER" - } - }, - { - "_id": 998565, - "_score": 1, - "_source": { - "username": "RAMONITA MAYO" - } - }, - { - "_id": 998538, - "_score": 1, - "_source": { - "username": "ELSA SEITZ" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997814, - "_score": 1, - "_source": { - "username": "MINH GOODWIN" - } - }, - { - "_id": 997587, - "_score": 1, - "_source": { - "username": "RAMONITA GIBBONS" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMYTH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 9965, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999498, - "_score": 1, - "_source": { - "username": "DORTHY DUCKWORTH" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999196, - "_score": 1, - "_source": { - "username": "HEATH MCNAMARA" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 999012, - "_score": 1, - "_source": { - "username": "HEATHER HAMMOCK" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998676, - "_score": 1, - "_source": { - "username": "BURT WOODWORTH" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 998220, - "_score": 1, - "_source": { - "username": "MORA WENTWORTH" - } - }, - { - "_id": 998083, - "_score": 1, - "_source": { - "username": "EDMUND ASHWORTH" - } - }, - { - "_id": 997999, - "_score": 1, - "_source": { - "username": "EDYTH CARLISLE" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - }, - { - "_id": 997543, - "_score": 1, - "_source": { - "username": "HEATHER CLAUSEN" - } - }, - { - "_id": 997395, - "_score": 1, - "_source": { - "username": "JON ASHWORTH" - } - }, - { - "_id": 997286, - "_score": 1, - "_source": { - "username": "JOI FARNSWORTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"layouts":"us,ru"}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":0}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "jordan" - }, - { - "query": "joe" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "joshua" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":1,"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1,"layouts":"","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":2,"layouts":"us,ru","append":1,"prepend":1,"expansion_len":2}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"gr","options":{"fuzziness":1,"layouts":"ru","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "gregory" - }, - { - "query": "grover" - }, - { - "query": "grant" - }, - { - "query": "grady" - }, - { - "query": "gracia" - }, - { - "query": "gregg" - }, - { - "query": "grace" - }, - { - "query": "graham" - }, - { - "query": "griffin" - }, - { - "query": "montenegro" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", + - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/plugins/ โœ… OK: 0 โŒ Failed: 1 โณ Duration: 20s ๐Ÿ‘‰ Check Action Results for commit 867a43a Failed tests:

test/clt-tests/plugins/test-enable-disable-buddy-plugin.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:09:22.557 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:09:22.557 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:09:22.558 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:09:22.558 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:09:22.558 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:09:22.558 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:09:22.573 2024] [27] prereading 0 tables + [Mon Oct 28 09:09:22.573 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 09:09:22.577 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 09:09:22.577 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'show' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'knn' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' + ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/replication/ โœ… OK: 1 โŒ Failed: 1 โณ Duration: 36s ๐Ÿ‘‰ Check Action Results for commit 867a43a Failed tests:

test/clt-tests/replication/replication-test.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=1 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=3 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';" โ€“โ€“โ€“ output โ€“โ€“โ€“ +-----------------------------+--------+ | Counter | Value | +-----------------------------+--------+ | cluster_replication_indexes | testrt | +-----------------------------+--------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "REPLACE INTO replication:testrt SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994;"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ - 0 + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994' + 1 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/buddy/ โœ… OK: 0 โŒ Failed: 4 โณ Duration: 113s ๐Ÿ‘‰ Check Action Results for commit 867a43a Failed tests:

test/clt-tests/buddy/test-fuzzy-search-negative.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:09:37.395 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:09:37.396 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:09:37.396 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:09:37.396 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:09:37.396 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:09:37.396 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:09:37.410 2024] [27] prereading 0 tables + [Mon Oct 28 09:09:37.410 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 09:09:37.414 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 09:09:37.414 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') OPTION fuzzy=-1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ ERROR 1064 (42000) at line 1: P01: syntax error, unexpected '-' near '-1' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') OPTION fuzzy='0';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') OPTION fuzzy='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') OPTION fuzzy=a;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') OPTION fuzzy=@;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Failed to parse query + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: no such table 'non_existing_table' + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('hello') OPTION fuzzy=1 layouts='';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid options in query string, make sure they are separated by commas + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' ```
test/clt-tests/buddy/test-fuzzy-search-non-min-infix-len.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:09:55.930 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:09:55.930 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:09:55.931 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:09:55.931 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:09:55.932 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:09:55.932 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:09:55.947 2024] [27] prereading 0 tables + [Mon Oct 28 09:09:55.947 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 09:09:55.951 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 09:09:55.951 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table test (id bigint, value text);" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Fuzzy search requires min_infix_len to be set + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ALTER TABLE test min_infix_len='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 30; mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' + ```
test/clt-tests/buddy/test-fuzzy-search.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:10:36.918 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:10:36.918 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:10:36.919 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:10:36.919 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:10:36.919 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:10:36.919 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:10:36.934 2024] [27] prereading 0 tables + [Mon Oct 28 09:10:36.934 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 09:10:36.938 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 09:10:36.938 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 195 | BRICE MULLIN | - | 306 | GRICELDA SKELTON | - | 362 | LAURICE SOLIZ | - | 477 | ERICH LLAMAS | - | 489 | LATRICE MANCILLA | - | 607 | MAURICE PRATHER | - | 658 | BRICE OLIVARES | - | 696 | PATRICE WOOD | - | 821 | JUNITA RICHARD | - | 834 | AUREA RICO | - | 853 | ROXANNE BRICE | - | 1121 | RICH MOLL | - | 1133 | JOELLA RICHARD | - | 1159 | MINDY HEINRICH | - | 1223 | YADIRA RICHARDSON | - | 1378 | BRICE ALLMAN | - | 1573 | RICO VALENZUELA | - | 1601 | BEATRICE LOVE | - | 1821 | RICHELLE ROE | - | 2135 | CHIQUITA RICHTER | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+----------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+----------------------+ - | 674 | CONCEPTION ABERNATHY | - | 963 | BERNARDINA OSHEA | - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - | 2237 | JUDI BERNAL | - | 2445 | MERNA GAITHER | - | 3064 | BERNADINE HIBBARD | - | 3194 | BERNADETTE SHELTON | - | 3687 | VERNA GASTON | - | 3780 | BERNARDINE WILKINS | - | 4369 | ERNA VITALE | - | 4636 | TARSHA HERNANDEZ | - | 4661 | FERNANDO HOUCK | - | 5043 | CONSTANCE ABERNATHY | - | 5579 | LAVERNA GORMAN | - | 5581 | FERNANDE ISRAEL | - | 5797 | LAVERNA STORM | - +------+----------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('ANT') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 7 | DAMIAN SOMERS | - | 15 | TAMI WHELAN | - | 18 | DARCY SANDBERG | - | 19 | RANEE BROUGHTON | - | 20 | STEPHEN ALLMAN | - | 29 | AMANDA KEY | - | 36 | ELFRIEDA HANKS | - | 40 | NANNIE WILLINGHAM | - | 41 | YOULANDA TROUT | - | 43 | ANTHONY SMOOT | - | 46 | FRANCIE BUNDY | - | 50 | LATASHA POLAND | - | 52 | SHEMEKA DURAND | - | 53 | LATANYA ARNDT | - | 55 | JANELLE LASTER | - | 56 | NANNIE HANNON | - | 57 | GRANVILLE VALDEZ | - | 58 | DEDE SPANN | - | 59 | DANIEL MERRITT | - | 62 | SAUL HOWLAND | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('tony') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+--------------------+ - | 117 | ANTONIA VANWINKLE | - | 219 | ANTONIA MELGAR | - | 390 | KARYL TONEY | - | 760 | TONYA SHERRILL | - | 1526 | LEONE TONEY | - | 2131 | TONIA RAPP | - | 2194 | TONIE HOANG | - | 2332 | LATONIA VILLASENOR | - | 2356 | TONIE BARNHILL | - | 2429 | TONIA BOSTICK | - | 2583 | TONI SPENCE | - | 2724 | ANTONIETTA CINTRON | - | 2880 | ANTONINA HASKELL | - | 3317 | TONY DUPRE | - | 3581 | ANTONIETTA BAEZ | - | 3857 | TONEY SCHOEN | - | 4365 | ROCHEL TONEY | - | 4607 | ANTONIA DRISCOLL | - | 4656 | TONYA PARRIS | - | 4799 | TONY WEISS | - +------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999498 | DORTHY DUCKWORTH | - | 999263 | RUTHANN GREENE | - | 999196 | HEATH MCNAMARA | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 999012 | HEATHER HAMMOCK | - | 998892 | IRWIN SOUTHARD | - | 998676 | BURT WOODWORTH | - | 998525 | SCOTT CARRION | - | 998220 | MORA WENTWORTH | - | 998083 | EDMUND ASHWORTH | - | 997999 | EDYTH CARLISLE | - | 997944 | RUTHE SCHENK | - | 997557 | ARTIE SOUTH | - | 997543 | HEATHER CLAUSEN | - | 997395 | JON ASHWORTH | - | 997286 | JOI FARNSWORTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy="1";" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+------------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+------------------------+ - | 999960 | JONELL ENRIGHT | - | 999931 | JONELL NIX | - | 999925 | JONAH BURNSIDE | - | 999921 | LAVONNA JONAS | - | 999859 | JOHNETTA DO | - | 999551 | JOHNNY CARNES | - | 999547 | JOHNATHAN PEPPER | - | 999508 | JOHNATHAN STUBBLEFIELD | - | 999170 | JOHNNY ABRAMS | - | 999032 | AGNUS STJOHN | - | 998834 | SCARLETT JONAS | - | 998797 | JOHNATHON READ | - | 998466 | JOHNSON JEAN | - | 998392 | JOHN BACH | - | 998305 | JOHNNY TAFOYA | - | 998303 | JONG SAUER | - | 998302 | JONATHON DUPRE | - | 998277 | JOHNNIE LOR | - | 998180 | JONA ELROD | - | 998153 | JONG YORK | - +--------+------------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') AND id BETWEEN 10000 AND 20000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +-------+--------------------+ - | 11037 | DESIRE LANE | - | 11055 | LANELLE WATTS | - | 11358 | JANIE CRAWFORD | - | 11391 | JAN LEW | - | 11396 | MELITA LANE | - | 11414 | MARYJANE HOLTZ | - | 11498 | JANN LEDEZMA | - | 11568 | JANETH SELBY | - | 11752 | TRACIE JANKOWSKI | - | 11757 | JANETTE GANTT | - | 11833 | JANELLE DRIGGERS | - | 10027 | ANJANETTE PORTILLO | - | 10055 | JANETTE LYNCH | - | 10068 | JANN HACKETT | - | 10110 | ALEJANDRINA DOWNS | - | 10242 | ALEJANDRINA ZAPATA | - | 10269 | JANNET QUINN | - | 10326 | JANICE APPEL | - | 10385 | JANN CASON | - | 10628 | LANETTE SWAIN | - +-------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') AND id BETWEEN 1000 AND 2000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+---------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+---------------------+ - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - +------+---------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SARA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+------------------+ - | 187 | LARA KIRK | - | 206 | CLARA MORRIS | - | 350 | KLARA DONALDSON | - | 989 | ELAINE SARABIA | - | 1408 | LARA FREDERICK | - | 1660 | SARA GARNER | - | 1819 | KARA CINTRON | - | 1830 | SARAI ESPINAL | - | 2073 | VALENTIN SARABIA | - | 2929 | LARA CINTRON | - | 3044 | KLARA ANDRES | - | 3372 | KLARA NORTON | - | 3740 | CRUZ SARABIA | - | 3779 | RUSSEL LARA | - | 4699 | HEE SARABIA | - | 4932 | KLARA GOODING | - | 5829 | SARAI LINDLEY | - | 5864 | SARAN KNAPP | - | 5917 | SARA WAITE | - | 6634 | CLARA BEALE | - +------+------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 0 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joshua | - | joy | - | joyce | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend, 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness, '' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 2 AS fuzziness, 'us,ru' AS layouts, 1 AS append, 1 AS prepend, 2 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | jose | - | joy | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | albert | - | alexander | - | allen | - | dale | - | dallas | - | donald | - | gale | - | kendall | - | marshall | - | walter | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('mi', 'name', 0 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | ami | - | britni | - | brittni | - | cami | - | choi | - | darci | - | eleni | - | jami | - | jani | - | jeni | - | joi | - | kaci | - | kami | - | kimi | - | laci | - | lani | - | luci | - | mancini | - | marci | - | martini | - | melani | - | muoi | - | nanci | - | neomi | - | noemi | - | nohemi | - | ricci | - | shani | - | staci | - | tammi | - | toi | - | tomi | - | traci | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | chang | - | chi | - | chung | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | page | - | paige | - | palma | - | palmer | - | paris | - | parker | - | pat | - | patrick | - | paul | - | paz | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('gr', 'name', 1 AS fuzziness, 'ru' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | grace | - | gracia | - | grady | - | graham | - | grant | - | gregg | - | gregory | - | griffin | - | grover | - | montenegro | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | query | + - +-----------+ - | some | - | something | - +-----------+ - ```
test/clt-tests/buddy/test-fuzzy-autocomplete-http.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:09:15.001 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:09:15.001 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:09:15.002 2024] [25] starting daemon version '6.3.7 27e521c6c@24102803 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:09:15.002 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:09:15.002 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:09:15.002 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:09:15.016 2024] [27] prereading 0 tables + [Mon Oct 28 09:09:15.016 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 09:09:15.020 2024] [25] WARNING: [BUDDY] no manticore-buddy/bin/manticore-buddy found at '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy', disabled + [Mon Oct 28 09:09:15.020 2024] [25] accepting connections โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"RICH"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 8380, - "total_relation": "eq", - "hits": [ - { - "_id": 832342, - "_score": %{NUMBER}, - "_source": { - "username": "RICO RICE" - } - }, - { - "_id": 768099, - "_score": 1562, - "_source": { - "username": "BRICE RICH" - } - }, - { - "_id": 989140, - "_score": 1549, - "_source": { - "username": "LEVI RICO" - } - }, - { - "_id": 869271, - "_score": 1549, - "_source": { - "username": "MARQUITA RICO" - } - }, - { - "_id": 932341, - "_score": 1549, - "_source": { - "username": "JERAMY RICO" - } - }, - { - "_id": 989530, - "_score": 1549, - "_source": { - "username": "RICO RAWLINGS" - } - }, - { - "_id": 939666, - "_score": 1549, - "_source": { - "username": "LAURENE RICO" - } - }, - { - "_id": 944740, - "_score": 1549, - "_source": { - "username": "JOSHUA RICO" - } - }, - { - "_id": 979783, - "_score": 1549, - "_source": { - "username": "RICO SWANK" - } - }, - { - "_id": 929967, - "_score": 1549, - "_source": { - "username": "BIANCA RICO" - } - }, - { - "_id": 914988, - "_score": 1549, - "_source": { - "username": "SUSANNE RICO" - } - }, - { - "_id": 911989, - "_score": 1549, - "_source": { - "username": "RICO IVY" - } - }, - { - "_id": 975060, - "_score": 1549, - "_source": { - "username": "RICO BRENNER" - } - }, - { - "_id": 921107, - "_score": 1549, - "_source": { - "username": "KENYETTA RICO" - } - }, - { - "_id": 996127, - "_score": 1549, - "_source": { - "username": "RICO WHITLOCK" - } - }, - { - "_id": 918295, - "_score": 1549, - "_source": { - "username": "MARLEN RICO" - } - }, - { - "_id": 933392, - "_score": 1549, - "_source": { - "username": "AN RICO" - } - }, - { - "_id": 924527, - "_score": 1549, - "_source": { - "username": "RICO BOEHM" - } - }, - { - "_id": 995638, - "_score": 1549, - "_source": { - "username": "RICO JAEGER" - } - }, - { - "_id": 950970, - "_score": 1549, - "_source": { - "username": "RICO TOTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"EBGRNA"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4329, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "BERNARDA BERNAL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WEIR" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA CHEUNG" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GRAFF" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA PUGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WOODWORTH" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA REICHERT" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LATHAM" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA FRANZ" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HAMLIN" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA POSTON" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HOOPER" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WITTE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ISBELL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA VEGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA MOREY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GUILLORY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LOUIE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GILL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ABRAHAM" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"ANT"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 249348, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FERDINAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "NATHANIAL KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANGELO KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANTONETTE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANN DENTON" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LANDON KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNE DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "STEPHAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "THURMAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "GEORGIANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "TRAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "CLEVELAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LIANA GANTT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ADRIAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FRANCOISE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOVAN KENT" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"tony"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4252, - "total_relation": "eq", - "hits": [ - { - "_id": 998183, - "_score": 1532, - "_source": { - "username": "TONA CHOATE" - } - }, - { - "_id": 999284, - "_score": 1532, - "_source": { - "username": "TONA EDMONDS" - } - }, - { - "_id": 932916, - "_score": 1532, - "_source": { - "username": "TONA GROGAN" - } - }, - { - "_id": 924415, - "_score": 1532, - "_source": { - "username": "TONA REYNOSO" - } - }, - { - "_id": 918798, - "_score": 1532, - "_source": { - "username": "TONA KOCH" - } - }, - { - "_id": 973217, - "_score": 1532, - "_source": { - "username": "TONA WINTER" - } - }, - { - "_id": 910284, - "_score": 1532, - "_source": { - "username": "TONA PRENTICE" - } - }, - { - "_id": 943295, - "_score": 1532, - "_source": { - "username": "TONA LAUGHLIN" - } - }, - { - "_id": 988528, - "_score": 1532, - "_source": { - "username": "TONA SUTHERLAND" - } - }, - { - "_id": 928754, - "_score": 1532, - "_source": { - "username": "TONA BARRETT" - } - }, - { - "_id": 916837, - "_score": 1532, - "_source": { - "username": "TONA IVORY" - } - }, - { - "_id": 993840, - "_score": 1532, - "_source": { - "username": "TONA MARQUARDT" - } - }, - { - "_id": 943890, - "_score": 1532, - "_source": { - "username": "TONA ASHE" - } - }, - { - "_id": 988892, - "_score": 1532, - "_source": { - "username": "TONA BOX" - } - }, - { - "_id": 943985, - "_score": 1532, - "_source": { - "username": "TONA DEHART" - } - }, - { - "_id": 971179, - "_score": 1532, - "_source": { - "username": "TONA KOZAK" - } - }, - { - "_id": 981673, - "_score": 1532, - "_source": { - "username": "TONA MCNEILL" - } - }, - { - "_id": 865983, - "_score": 1532, - "_source": { - "username": "TONA PETTIGREW" - } - }, - { - "_id": 982220, - "_score": 1532, - "_source": { - "username": "TONA ARNDT" - } - }, - { - "_id": 947393, - "_score": 1532, - "_source": { - "username": "TONA SEELEY" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMITH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 7170, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999928, - "_score": 1, - "_source": { - "username": "BONITA LEONG" - } - }, - { - "_id": 999858, - "_score": 1, - "_source": { - "username": "TONITA GEARY" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999721, - "_score": 1, - "_source": { - "username": "TONITA ESTRADA" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999249, - "_score": 1, - "_source": { - "username": "MINH LANDERS" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998690, - "_score": 1, - "_source": { - "username": "MITCHELL SEITZ" - } - }, - { - "_id": 998580, - "_score": 1, - "_source": { - "username": "RAMONITA SWISHER" - } - }, - { - "_id": 998565, - "_score": 1, - "_source": { - "username": "RAMONITA MAYO" - } - }, - { - "_id": 998538, - "_score": 1, - "_source": { - "username": "ELSA SEITZ" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997814, - "_score": 1, - "_source": { - "username": "MINH GOODWIN" - } - }, - { - "_id": 997587, - "_score": 1, - "_source": { - "username": "RAMONITA GIBBONS" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMYTH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 9965, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999498, - "_score": 1, - "_source": { - "username": "DORTHY DUCKWORTH" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999196, - "_score": 1, - "_source": { - "username": "HEATH MCNAMARA" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 999012, - "_score": 1, - "_source": { - "username": "HEATHER HAMMOCK" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998676, - "_score": 1, - "_source": { - "username": "BURT WOODWORTH" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 998220, - "_score": 1, - "_source": { - "username": "MORA WENTWORTH" - } - }, - { - "_id": 998083, - "_score": 1, - "_source": { - "username": "EDMUND ASHWORTH" - } - }, - { - "_id": 997999, - "_score": 1, - "_source": { - "username": "EDYTH CARLISLE" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - }, - { - "_id": 997543, - "_score": 1, - "_source": { - "username": "HEATHER CLAUSEN" - } - }, - { - "_id": 997395, - "_score": 1, - "_source": { - "username": "JON ASHWORTH" - } - }, - { - "_id": 997286, - "_score": 1, - "_source": { - "username": "JOI FARNSWORTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"layouts":"us,ru"}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":0}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "jordan" - }, - { - "query": "joe" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "joshua" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":1,"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1,"layouts":"","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":2,"layouts":"us,ru","append":1,"prepend":1,"expansion_len":2}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"gr","options":{"fuzziness":1,"layouts":"ru","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "gregory" - }, - { - "query": "grover" - }, - { - "query": "grant" - }, - { - "query": "grady" - }, - { - "query": "gracia" - }, - { - "query": "gregg" - }, - { - "query": "grace" - }, - { - "query": "graham" - }, - { - "query": "griffin" - }, - { - "query": "montenegro" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", + - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/plugins/ โœ… OK: 0 โŒ Failed: 1 โณ Duration: 20s ๐Ÿ‘‰ Check Action Results for commit 4843838 Failed tests:

test/clt-tests/plugins/test-enable-disable-buddy-plugin.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:40:44.975 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:40:44.976 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:40:44.976 2024] [25] starting daemon version '6.3.7 4843838cf@24102809 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:40:44.976 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:40:44.976 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:40:44.976 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:40:44.991 2024] [27] prereading 0 tables + [Mon Oct 28 09:40:44.991 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 09:40:44.996 2024] [25] accepting connections + [Mon Oct 28 09:40:45.010 2024] [29] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:40:45.011 2024] [29] [BUDDY] restarting + [Mon Oct 28 09:40:45.025 2024] [28] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:40:45.026 2024] [28] [BUDDY] restarting + [Mon Oct 28 09:40:45.040 2024] [26] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:40:45.040 2024] [26] [BUDDY] restart amount of attempts (3) has been exceeded โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'show' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Plugin 'knn' is disabled + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected integer, expecting '(' near '1 )' + ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/replication/ โœ… OK: 1 โŒ Failed: 1 โณ Duration: 36s ๐Ÿ‘‰ Check Action Results for commit 4843838 Failed tests:

test/clt-tests/replication/replication-test.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=1 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=3 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ export CLUSTER_NAME=replication โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** Counter: cluster_#!/[a-z]+/!#_status Value: primary โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';" โ€“โ€“โ€“ output โ€“โ€“โ€“ +-----------------------------+--------+ | Counter | Value | +-----------------------------+--------+ | cluster_replication_indexes | testrt | +-----------------------------+--------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=5 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=2 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ *************************** 1. row *************************** id: 6775836565403860993 title: List of HP business laptops content: Elitebook Probook gid: 1 *************************** 2. row *************************** id: 6775836565403860994 title: List of Dell business laptops content: Latitude Precision Vostro gid: 2 *************************** 3. row *************************** id: 6775836565403860995 title: List of HP business laptops content: Macbook gid: 3 *************************** 4. row *************************** id: 6775836565403860996 title: NEW content: TABLE gid: 4 โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)... [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ export INSTANCE=4 โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j} โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach โ€“โ€“โ€“ output โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on all interfaces for mysql, port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} listening on all interfaces for sphinx and http(s), port=%{NUMBER} โ€“โ€“โ€“ input โ€“โ€“โ€“ if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi โ€“โ€“โ€“ output โ€“โ€“โ€“ Accepting connections! โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt; โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "REPLACE INTO replication:testrt SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994;"; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ - 0 + ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994' + 1 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P2306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P3306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P4306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P5306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G" โ€“โ€“โ€“ output โ€“โ€“โ€“ - *************************** 1. row *************************** + - id: 6775836565403860994 - title: List of Dell business laptops - content: Updated Content - gid: 2 - ```
github-actions[bot] commented 4 weeks ago

clt

๐Ÿ‘Ž CLT tests in test/clt-tests/buddy/ โœ… OK: 0 โŒ Failed: 4 โณ Duration: 115s ๐Ÿ‘‰ Check Action Results for commit 4843838 Failed tests:

test/clt-tests/buddy/test-fuzzy-search-negative.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:41:09.479 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:41:09.479 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:41:09.479 2024] [25] starting daemon version '6.3.7 4843838cf@24102809 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:41:09.479 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:41:09.479 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:41:09.479 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:41:09.494 2024] [27] prereading 0 tables + [Mon Oct 28 09:41:09.494 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 09:41:09.500 2024] [25] accepting connections + [Mon Oct 28 09:41:09.514 2024] [28] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:41:09.515 2024] [28] [BUDDY] restarting + [Mon Oct 28 09:41:09.529 2024] [27] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:41:09.530 2024] [27] [BUDDY] restarting + [Mon Oct 28 09:41:09.544 2024] [26] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:41:09.544 2024] [26] [BUDDY] restart amount of attempts (3) has been exceeded โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') OPTION fuzzy=-1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ ERROR 1064 (42000) at line 1: P01: syntax error, unexpected '-' near '-1' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') OPTION fuzzy='0';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') OPTION fuzzy='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') OPTION fuzzy=a;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') OPTION fuzzy=@;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy' + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Failed to parse query + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: no such table 'non_existing_table' + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('hello') OPTION fuzzy=1 layouts='';" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Invalid options in query string, make sure they are separated by commas + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' ```
test/clt-tests/buddy/test-fuzzy-search-non-min-infix-len.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:41:27.747 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:41:27.747 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:41:27.747 2024] [25] starting daemon version '6.3.7 4843838cf@24102809 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:41:27.748 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:41:27.748 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:41:27.748 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:41:27.762 2024] [27] prereading 0 tables + [Mon Oct 28 09:41:27.762 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 09:41:27.767 2024] [25] accepting connections + [Mon Oct 28 09:41:27.781 2024] [29] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:41:27.782 2024] [29] [BUDDY] restarting + [Mon Oct 28 09:41:27.796 2024] [28] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:41:27.797 2024] [28] [BUDDY] restarting + [Mon Oct 28 09:41:27.811 2024] [26] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:41:27.811 2024] [26] [BUDDY] restart amount of attempts (3) has been exceeded โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "create table test (id bigint, value text);" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - ERROR 1064 (42000) at line 1: Fuzzy search requires min_infix_len to be set + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "ALTER TABLE test min_infix_len='2';" โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ sleep 30; mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' + ```
test/clt-tests/buddy/test-fuzzy-search.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:42:08.631 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:42:08.631 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:42:08.632 2024] [25] starting daemon version '6.3.7 4843838cf@24102809 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:42:08.632 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:42:08.632 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:42:08.632 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:42:08.647 2024] [26] prereading 0 tables + [Mon Oct 28 09:42:08.647 2024] [26] preread 0 tables in 0.000 sec + [Mon Oct 28 09:42:08.652 2024] [25] accepting connections + [Mon Oct 28 09:42:08.666 2024] [29] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:42:08.667 2024] [29] [BUDDY] restarting + [Mon Oct 28 09:42:08.681 2024] [28] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:42:08.682 2024] [28] [BUDDY] restarting + [Mon Oct 28 09:42:08.696 2024] [27] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:42:08.696 2024] [27] [BUDDY] restart amount of attempts (3) has been exceeded โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 195 | BRICE MULLIN | - | 306 | GRICELDA SKELTON | - | 362 | LAURICE SOLIZ | - | 477 | ERICH LLAMAS | - | 489 | LATRICE MANCILLA | - | 607 | MAURICE PRATHER | - | 658 | BRICE OLIVARES | - | 696 | PATRICE WOOD | - | 821 | JUNITA RICHARD | - | 834 | AUREA RICO | - | 853 | ROXANNE BRICE | - | 1121 | RICH MOLL | - | 1133 | JOELLA RICHARD | - | 1159 | MINDY HEINRICH | - | 1223 | YADIRA RICHARDSON | - | 1378 | BRICE ALLMAN | - | 1573 | RICO VALENZUELA | - | 1601 | BEATRICE LOVE | - | 1821 | RICHELLE ROE | - | 2135 | CHIQUITA RICHTER | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+----------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+----------------------+ - | 674 | CONCEPTION ABERNATHY | - | 963 | BERNARDINA OSHEA | - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - | 2237 | JUDI BERNAL | - | 2445 | MERNA GAITHER | - | 3064 | BERNADINE HIBBARD | - | 3194 | BERNADETTE SHELTON | - | 3687 | VERNA GASTON | - | 3780 | BERNARDINE WILKINS | - | 4369 | ERNA VITALE | - | 4636 | TARSHA HERNANDEZ | - | 4661 | FERNANDO HOUCK | - | 5043 | CONSTANCE ABERNATHY | - | 5579 | LAVERNA GORMAN | - | 5581 | FERNANDE ISRAEL | - | 5797 | LAVERNA STORM | - +------+----------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('ANT') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+-------------------+ - | 7 | DAMIAN SOMERS | - | 15 | TAMI WHELAN | - | 18 | DARCY SANDBERG | - | 19 | RANEE BROUGHTON | - | 20 | STEPHEN ALLMAN | - | 29 | AMANDA KEY | - | 36 | ELFRIEDA HANKS | - | 40 | NANNIE WILLINGHAM | - | 41 | YOULANDA TROUT | - | 43 | ANTHONY SMOOT | - | 46 | FRANCIE BUNDY | - | 50 | LATASHA POLAND | - | 52 | SHEMEKA DURAND | - | 53 | LATANYA ARNDT | - | 55 | JANELLE LASTER | - | 56 | NANNIE HANNON | - | 57 | GRANVILLE VALDEZ | - | 58 | DEDE SPANN | - | 59 | DANIEL MERRITT | - | 62 | SAUL HOWLAND | - +------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('tony') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+--------------------+ - | 117 | ANTONIA VANWINKLE | - | 219 | ANTONIA MELGAR | - | 390 | KARYL TONEY | - | 760 | TONYA SHERRILL | - | 1526 | LEONE TONEY | - | 2131 | TONIA RAPP | - | 2194 | TONIE HOANG | - | 2332 | LATONIA VILLASENOR | - | 2356 | TONIE BARNHILL | - | 2429 | TONIA BOSTICK | - | 2583 | TONI SPENCE | - | 2724 | ANTONIETTA CINTRON | - | 2880 | ANTONINA HASKELL | - | 3317 | TONY DUPRE | - | 3581 | ANTONIETTA BAEZ | - | 3857 | TONEY SCHOEN | - | 4365 | ROCHEL TONEY | - | 4607 | ANTONIA DRISCOLL | - | 4656 | TONYA PARRIS | - | 4799 | TONY WEISS | - +------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999498 | DORTHY DUCKWORTH | - | 999263 | RUTHANN GREENE | - | 999196 | HEATH MCNAMARA | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 999012 | HEATHER HAMMOCK | - | 998892 | IRWIN SOUTHARD | - | 998676 | BURT WOODWORTH | - | 998525 | SCOTT CARRION | - | 998220 | MORA WENTWORTH | - | 998083 | EDMUND ASHWORTH | - | 997999 | EDYTH CARLISLE | - | 997944 | RUTHE SCHENK | - | 997557 | ARTIE SOUTH | - | 997543 | HEATHER CLAUSEN | - | 997395 | JON ASHWORTH | - | 997286 | JOI FARNSWORTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy="1";" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+-------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+-------------------+ - | 999972 | KEITH SNOW | - | 999928 | BONITA LEONG | - | 999858 | TONITA GEARY | - | 999854 | DOROTHA WISEMAN | - | 999722 | SCOTT OLSON | - | 999721 | TONITA ESTRADA | - | 999263 | RUTHANN GREENE | - | 999249 | MINH LANDERS | - | 999126 | MALENA RUTHERFORD | - | 999119 | RUTHANNE CARDOSO | - | 998892 | IRWIN SOUTHARD | - | 998690 | MITCHELL SEITZ | - | 998580 | RAMONITA SWISHER | - | 998565 | RAMONITA MAYO | - | 998538 | ELSA SEITZ | - | 998525 | SCOTT CARRION | - | 997944 | RUTHE SCHENK | - | 997814 | MINH GOODWIN | - | 997587 | RAMONITA GIBBONS | - | 997557 | ARTIE SOUTH | - +--------+-------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +--------+------------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +--------+------------------------+ - | 999960 | JONELL ENRIGHT | - | 999931 | JONELL NIX | - | 999925 | JONAH BURNSIDE | - | 999921 | LAVONNA JONAS | - | 999859 | JOHNETTA DO | - | 999551 | JOHNNY CARNES | - | 999547 | JOHNATHAN PEPPER | - | 999508 | JOHNATHAN STUBBLEFIELD | - | 999170 | JOHNNY ABRAMS | - | 999032 | AGNUS STJOHN | - | 998834 | SCARLETT JONAS | - | 998797 | JOHNATHON READ | - | 998466 | JOHNSON JEAN | - | 998392 | JOHN BACH | - | 998305 | JOHNNY TAFOYA | - | 998303 | JONG SAUER | - | 998302 | JONATHON DUPRE | - | 998277 | JOHNNIE LOR | - | 998180 | JONA ELROD | - | 998153 | JONG YORK | - +--------+------------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') AND id BETWEEN 10000 AND 20000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+--------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +-------+--------------------+ - | 11037 | DESIRE LANE | - | 11055 | LANELLE WATTS | - | 11358 | JANIE CRAWFORD | - | 11391 | JAN LEW | - | 11396 | MELITA LANE | - | 11414 | MARYJANE HOLTZ | - | 11498 | JANN LEDEZMA | - | 11568 | JANETH SELBY | - | 11752 | TRACIE JANKOWSKI | - | 11757 | JANETTE GANTT | - | 11833 | JANELLE DRIGGERS | - | 10027 | ANJANETTE PORTILLO | - | 10055 | JANETTE LYNCH | - | 10068 | JANN HACKETT | - | 10110 | ALEJANDRINA DOWNS | - | 10242 | ALEJANDRINA ZAPATA | - | 10269 | JANNET QUINN | - | 10326 | JANICE APPEL | - | 10385 | JANN CASON | - | 10628 | LANETTE SWAIN | - +-------+--------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') AND id BETWEEN 1000 AND 2000 ORDER BY username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+---------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+---------------------+ - | 1353 | VERNA VITALE | - | 1783 | BERNADETTE HALES | - | 1838 | BERNARDINA MCMILLAN | - | 1863 | ERNA ULLOA | - | 1947 | SAMIRA ABERNATHY | - +------+---------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SARA') ORDER BY id ASC, username ASC OPTION fuzzy=1;" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------+------------------+ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' - | id | username | - +------+------------------+ - | 187 | LARA KIRK | - | 206 | CLARA MORRIS | - | 350 | KLARA DONALDSON | - | 989 | ELAINE SARABIA | - | 1408 | LARA FREDERICK | - | 1660 | SARA GARNER | - | 1819 | KARA CINTRON | - | 1830 | SARAI ESPINAL | - | 2073 | VALENTIN SARABIA | - | 2929 | LARA CINTRON | - | 3044 | KLARA ANDRES | - | 3372 | KLARA NORTON | - | 3740 | CRUZ SARABIA | - | 3779 | RUSSEL LARA | - | 4699 | HEE SARABIA | - | 4932 | KLARA GOODING | - | 5829 | SARAI LINDLEY | - | 5864 | SARAN KNAPP | - | 5917 | SARA WAITE | - | 6634 | CLARA BEALE | - +------+------------------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 0 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joshua | - | joy | - | joyce | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend, 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness, '' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 2 AS fuzziness, 'us,ru' AS layouts, 1 AS append, 1 AS prepend, 2 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | jose | - | joy | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | joe | - | john | - | johnson | - | jonas | - | jordan | - | jose | - | joseph | - | joy | - | joyce | - | major | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | albert | - | alexander | - | allen | - | dale | - | dallas | - | donald | - | gale | - | kendall | - | marshall | - | walter | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('mi', 'name', 0 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | ami | - | britni | - | brittni | - | cami | - | choi | - | darci | - | eleni | - | jami | - | jani | - | jeni | - | joi | - | kaci | - | kami | - | kimi | - | laci | - | lani | - | luci | - | mancini | - | marci | - | martini | - | melani | - | muoi | - | nanci | - | neomi | - | noemi | - | nohemi | - | ricci | - | shani | - | staci | - | tammi | - | toi | - | tomi | - | traci | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | chang | - | chi | - | chung | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +---------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | page | - | paige | - | palma | - | palmer | - | paris | - | parker | - | pat | - | patrick | - | paul | - | paz | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ะทั„', 'name', 'us' AS layouts);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('gr', 'name', 1 AS fuzziness, 'ru' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort โ€“โ€“โ€“ output โ€“โ€“โ€“ - +------------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | grace | - | gracia | - | grady | - | graham | - | grant | - | gregg | - | gregory | - | griffin | - | grover | - | montenegro | โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;" โ€“โ€“โ€“ output โ€“โ€“โ€“ + ERROR 1064 (42000) at line 1: unknown option 'fuzzy' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');" โ€“โ€“โ€“ output โ€“โ€“โ€“ - +-----------+ + ERROR 1064 (42000) at line 1: no such built-in procedure AUTOCOMPLETE - | query | + - +-----------+ - | some | - | something | - +-----------+ - ```
test/clt-tests/buddy/test-fuzzy-autocomplete-http.rec ```diff โ€“โ€“โ€“ input โ€“โ€“โ€“ rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; 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 โ€“โ€“โ€“ Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE}) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com) [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)... starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ... listening on %{IPADDR}:9312 for sphinx and http(s) listening on %{IPADDR}:9306 for mysql listening on %{IPADDR}:9308 for sphinx and http(s) - Buddy started! + Timeout or failed! + [Mon Oct 28 09:40:46.704 2024] [24] watchdog: main process 25 forked ok + [Mon Oct 28 09:40:46.705 2024] [25] Using local time zone '/etc/localtime' + [Mon Oct 28 09:40:46.705 2024] [25] starting daemon version '6.3.7 4843838cf@24102809 dev (columnar 2.3.1 30ad2d6@24100914) (secondary 2.3.1 30ad2d6@24100914) (knn 2.3.1 30ad2d6@24100914)' ... + [Mon Oct 28 09:40:46.705 2024] [25] listening on 127.0.0.1:9312 for sphinx and http(s) + [Mon Oct 28 09:40:46.705 2024] [25] listening on 127.0.0.1:9306 for mysql + [Mon Oct 28 09:40:46.705 2024] [25] listening on 127.0.0.1:9308 for sphinx and http(s) + [Mon Oct 28 09:40:46.720 2024] [27] prereading 0 tables + [Mon Oct 28 09:40:46.720 2024] [27] preread 0 tables in 0.000 sec + [Mon Oct 28 09:40:46.726 2024] [25] accepting connections + [Mon Oct 28 09:40:46.740 2024] [29] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:40:46.741 2024] [29] [BUDDY] restarting + [Mon Oct 28 09:40:46.755 2024] [28] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:40:46.756 2024] [28] [BUDDY] restarting + [Mon Oct 28 09:40:46.770 2024] [26] WARNING: [BUDDY] invalid output, should be 'Buddy ver, started address:port', got 'Failed to find __PACKAGE__ path in predefined share modules. + ' + [Mon Oct 28 09:40:46.770 2024] [26] [BUDDY] restart amount of attempts (3) has been exceeded โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get update -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ apt-get install jq -y > /dev/null; echo $? โ€“โ€“โ€“ output โ€“โ€“โ€“ debconf: delaying package configuration, since apt-utils is not installed 0 โ€“โ€“โ€“ input โ€“โ€“โ€“ php -d memory_limit=-1 ./test/clt-tests/scripts/load_us_names_min_infix_len.php 1000 10 1000000 5 2 > /dev/null โ€“โ€“โ€“ output โ€“โ€“โ€“ โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.*\(min_infix_len='2'\).*/\1/" โ€“โ€“โ€“ output โ€“โ€“โ€“ min_infix_len='2' โ€“โ€“โ€“ input โ€“โ€“โ€“ mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;" โ€“โ€“โ€“ output โ€“โ€“โ€“ +----------+ | count(*) | +----------+ | 1000000 | +----------+ โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"RICH"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 8380, - "total_relation": "eq", - "hits": [ - { - "_id": 832342, - "_score": %{NUMBER}, - "_source": { - "username": "RICO RICE" - } - }, - { - "_id": 768099, - "_score": 1562, - "_source": { - "username": "BRICE RICH" - } - }, - { - "_id": 989140, - "_score": 1549, - "_source": { - "username": "LEVI RICO" - } - }, - { - "_id": 869271, - "_score": 1549, - "_source": { - "username": "MARQUITA RICO" - } - }, - { - "_id": 932341, - "_score": 1549, - "_source": { - "username": "JERAMY RICO" - } - }, - { - "_id": 989530, - "_score": 1549, - "_source": { - "username": "RICO RAWLINGS" - } - }, - { - "_id": 939666, - "_score": 1549, - "_source": { - "username": "LAURENE RICO" - } - }, - { - "_id": 944740, - "_score": 1549, - "_source": { - "username": "JOSHUA RICO" - } - }, - { - "_id": 979783, - "_score": 1549, - "_source": { - "username": "RICO SWANK" - } - }, - { - "_id": 929967, - "_score": 1549, - "_source": { - "username": "BIANCA RICO" - } - }, - { - "_id": 914988, - "_score": 1549, - "_source": { - "username": "SUSANNE RICO" - } - }, - { - "_id": 911989, - "_score": 1549, - "_source": { - "username": "RICO IVY" - } - }, - { - "_id": 975060, - "_score": 1549, - "_source": { - "username": "RICO BRENNER" - } - }, - { - "_id": 921107, - "_score": 1549, - "_source": { - "username": "KENYETTA RICO" - } - }, - { - "_id": 996127, - "_score": 1549, - "_source": { - "username": "RICO WHITLOCK" - } - }, - { - "_id": 918295, - "_score": 1549, - "_source": { - "username": "MARLEN RICO" - } - }, - { - "_id": 933392, - "_score": 1549, - "_source": { - "username": "AN RICO" - } - }, - { - "_id": 924527, - "_score": 1549, - "_source": { - "username": "RICO BOEHM" - } - }, - { - "_id": 995638, - "_score": 1549, - "_source": { - "username": "RICO JAEGER" - } - }, - { - "_id": 950970, - "_score": 1549, - "_source": { - "username": "RICO TOTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"EBGRNA"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4329, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "BERNARDA BERNAL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WEIR" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA CHEUNG" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GRAFF" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA PUGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WOODWORTH" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA REICHERT" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LATHAM" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA FRANZ" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HAMLIN" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA POSTON" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA HOOPER" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA WITTE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ISBELL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA VEGA" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA MOREY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GUILLORY" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA LOUIE" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA GILL" - } - }, - { - "_id": %{NUMBER}, - "_score": 1602, - "_source": { - "username": "BERNA ABRAHAM" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"ANT"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 249348, - "total_relation": "eq", - "hits": [ - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FERDINAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "NATHANIAL KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANGELO KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANTONETTE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANN DENTON" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "SUZANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LANDON KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOANNE DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "STEPHAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "THURMAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "GEORGIANNA DENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "TRAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "CLEVELAND KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "LIANA GANTT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ADRIAN KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "ANDREW KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "FRANCOISE KENT" - } - }, - { - "_id": %{NUMBER}, - "_score": %{NUMBER}, - "_source": { - "username": "JOVAN KENT" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"tony"}}]}},"options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 4252, - "total_relation": "eq", - "hits": [ - { - "_id": 998183, - "_score": 1532, - "_source": { - "username": "TONA CHOATE" - } - }, - { - "_id": 999284, - "_score": 1532, - "_source": { - "username": "TONA EDMONDS" - } - }, - { - "_id": 932916, - "_score": 1532, - "_source": { - "username": "TONA GROGAN" - } - }, - { - "_id": 924415, - "_score": 1532, - "_source": { - "username": "TONA REYNOSO" - } - }, - { - "_id": 918798, - "_score": 1532, - "_source": { - "username": "TONA KOCH" - } - }, - { - "_id": 973217, - "_score": 1532, - "_source": { - "username": "TONA WINTER" - } - }, - { - "_id": 910284, - "_score": 1532, - "_source": { - "username": "TONA PRENTICE" - } - }, - { - "_id": 943295, - "_score": 1532, - "_source": { - "username": "TONA LAUGHLIN" - } - }, - { - "_id": 988528, - "_score": 1532, - "_source": { - "username": "TONA SUTHERLAND" - } - }, - { - "_id": 928754, - "_score": 1532, - "_source": { - "username": "TONA BARRETT" - } - }, - { - "_id": 916837, - "_score": 1532, - "_source": { - "username": "TONA IVORY" - } - }, - { - "_id": 993840, - "_score": 1532, - "_source": { - "username": "TONA MARQUARDT" - } - }, - { - "_id": 943890, - "_score": 1532, - "_source": { - "username": "TONA ASHE" - } - }, - { - "_id": 988892, - "_score": 1532, - "_source": { - "username": "TONA BOX" - } - }, - { - "_id": 943985, - "_score": 1532, - "_source": { - "username": "TONA DEHART" - } - }, - { - "_id": 971179, - "_score": 1532, - "_source": { - "username": "TONA KOZAK" - } - }, - { - "_id": 981673, - "_score": 1532, - "_source": { - "username": "TONA MCNEILL" - } - }, - { - "_id": 865983, - "_score": 1532, - "_source": { - "username": "TONA PETTIGREW" - } - }, - { - "_id": 982220, - "_score": 1532, - "_source": { - "username": "TONA ARNDT" - } - }, - { - "_id": 947393, - "_score": 1532, - "_source": { - "username": "TONA SEELEY" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMITH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 7170, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999928, - "_score": 1, - "_source": { - "username": "BONITA LEONG" - } - }, - { - "_id": 999858, - "_score": 1, - "_source": { - "username": "TONITA GEARY" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999721, - "_score": 1, - "_source": { - "username": "TONITA ESTRADA" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999249, - "_score": 1, - "_source": { - "username": "MINH LANDERS" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998690, - "_score": 1, - "_source": { - "username": "MITCHELL SEITZ" - } - }, - { - "_id": 998580, - "_score": 1, - "_source": { - "username": "RAMONITA SWISHER" - } - }, - { - "_id": 998565, - "_score": 1, - "_source": { - "username": "RAMONITA MAYO" - } - }, - { - "_id": 998538, - "_score": 1, - "_source": { - "username": "ELSA SEITZ" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997814, - "_score": 1, - "_source": { - "username": "MINH GOODWIN" - } - }, - { - "_id": 997587, - "_score": 1, - "_source": { - "username": "RAMONITA GIBBONS" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMYTH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ { - "took": %{NUMBER}, + "error": "unknown option 'fuzzy'" - "timed_out": false, + } - "hits": { - "total": 9965, - "total_relation": "eq", - "hits": [ - { - "_id": 999972, - "_score": 1, - "_source": { - "username": "KEITH SNOW" - } - }, - { - "_id": 999854, - "_score": 1, - "_source": { - "username": "DOROTHA WISEMAN" - } - }, - { - "_id": 999722, - "_score": 1, - "_source": { - "username": "SCOTT OLSON" - } - }, - { - "_id": 999498, - "_score": 1, - "_source": { - "username": "DORTHY DUCKWORTH" - } - }, - { - "_id": 999263, - "_score": 1, - "_source": { - "username": "RUTHANN GREENE" - } - }, - { - "_id": 999196, - "_score": 1, - "_source": { - "username": "HEATH MCNAMARA" - } - }, - { - "_id": 999126, - "_score": 1, - "_source": { - "username": "MALENA RUTHERFORD" - } - }, - { - "_id": 999119, - "_score": 1, - "_source": { - "username": "RUTHANNE CARDOSO" - } - }, - { - "_id": 999012, - "_score": 1, - "_source": { - "username": "HEATHER HAMMOCK" - } - }, - { - "_id": 998892, - "_score": 1, - "_source": { - "username": "IRWIN SOUTHARD" - } - }, - { - "_id": 998676, - "_score": 1, - "_source": { - "username": "BURT WOODWORTH" - } - }, - { - "_id": 998525, - "_score": 1, - "_source": { - "username": "SCOTT CARRION" - } - }, - { - "_id": 998220, - "_score": 1, - "_source": { - "username": "MORA WENTWORTH" - } - }, - { - "_id": 998083, - "_score": 1, - "_source": { - "username": "EDMUND ASHWORTH" - } - }, - { - "_id": 997999, - "_score": 1, - "_source": { - "username": "EDYTH CARLISLE" - } - }, - { - "_id": 997944, - "_score": 1, - "_source": { - "username": "RUTHE SCHENK" - } - }, - { - "_id": 997557, - "_score": 1, - "_source": { - "username": "ARTIE SOUTH" - } - }, - { - "_id": 997543, - "_score": 1, - "_source": { - "username": "HEATHER CLAUSEN" - } - }, - { - "_id": 997395, - "_score": 1, - "_source": { - "username": "JON ASHWORTH" - } - }, - { - "_id": 997286, - "_score": 1, - "_source": { - "username": "JOI FARNSWORTH" - } - } - ] - } - } โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"layouts":"us,ru"}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":0}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "jordan" - }, - { - "query": "joe" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "joshua" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":1,"append":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1,"layouts":"","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":2,"layouts":"us,ru","append":1,"prepend":1,"expansion_len":2}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"gr","options":{"fuzziness":1,"layouts":"ru","append":1,"prepend":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "gregory" - }, - { - "query": "grover" - }, - { - "query": "grant" - }, - { - "query": "grady" - }, - { - "query": "gracia" - }, - { - "query": "gregg" - }, - { - "query": "grace" - }, - { - "query": "graham" - }, - { - "query": "griffin" - }, - { - "query": "montenegro" - } - ] - } - ] โ€“โ€“โ€“ input โ€“โ€“โ€“ curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1}}' | jq -M โ€“โ€“โ€“ output โ€“โ€“โ€“ - [ + { - { + "error": "/autocomplete - unsupported endpoint" - "total": %{NUMBER}, + } - "error": "", + - "warning": "", - "columns": [ - { - "query": { - "type": "string" - } - } - ], - "data": [ - { - "query": "joe" - }, - { - "query": "jordan" - }, - { - "query": "joseph" - }, - { - "query": "john" - }, - { - "query": "jose" - }, - { - "query": "joy" - }, - { - "query": "joyce" - }, - { - "query": "jonas" - }, - { - "query": "johnson" - }, - { - "query": "major" - } - ] - } - ] - ```