Open ogolosovskiy opened 1 year ago
mysql> drop table if exists t; create table t(f text) expand_keywords='star' min_infix_len='2'; insert into t values(1, 'abc defghi jkl'); select highlight() from t where match('efg');
--------------
drop table if exists t
--------------
Query OK, 0 rows affected (0.00 sec)
--------------
create table t(f text) expand_keywords='star' min_infix_len='2'
--------------
Query OK, 0 rows affected (0.01 sec)
--------------
insert into t values(1, 'abc defghi jkl')
--------------
Query OK, 1 row affected (0.00 sec)
--------------
select highlight() from t where match('efg')
--------------
+----------------+
| highlight() |
+----------------+
| abc defghi jkl |
+----------------+
1 row in set (0.00 sec)
Describe the bug
There is problem with Highlighting feature
https://manual.manticoresearch.com/Searching/Highlighting#Highlighting-via-SQL
It does not work for expanded words (word*) Setting expand_keywords=star.
How to Reproduce
Expected behaviour
Describe the environment:
Manticore 6.0.2 89c7a5139@230210 (columnar 2.0.0 a7c703d@230130) (secondary 2.0.0 a7c703d@230130)
OS version:
Debian GNU/Linux 11 (bullseye)
Messages from log files:
Logs without errors
My config
index archiveo ...
{
type = plain
charset_table = non_cjk, U 20BD, U 20AC, U 24
ngram_len=1
ngram_chars = cjk
blendchars = :, -, , .,
source = archiveogom_1
path = /var/lib/manticore/dataogo/archiveogo_1
min_prefix_len = 1
min_infix_len = 3
dict=keywords
expand_keywords=star
min_word_len=3
}