alphanumeric word indexing

Hi all,
I’m creating plain table what include numbers and letters:

table eshop {
    type = plain
    path = /var/lib/manticore/eshop/eshop_plain
    source = eshop
    charset_table=russian, 0..9, english, _
    morphology=lemmatize_ru, lemmatize_en

    min_infix_len =2

eshop have this record:
1,“3M - Filtrete BISSELL Replacement Belt”

but when I run the query, the output list is empty.

call suggest('3M', 'eshop');

looks like 3M didn’t make the index.
can you tell me what I’m missing?

For example call suggest(‘BISSELL’, ‘eshop’); work as expexted:
Снимок экрана 2024-04-05 171614

try to use non_char = 1 option as described Manticore Search Manual: Searching > Spell correction

1 Like

Yes, I was try all options, but ouput is empty too

call suggest('3M', 'eshop',1 as non_char,1 as reject);
call suggest('3M', 'eshop',1 as non_char);

it seems hardcoded to skip words are shorter 3 chars manticoresearch/src/sphinx.cpp at master · manticoresoftware/manticoresearch · GitHub

You could create ticket at GitHub to fix this case.

1 Like