A
A
Alexander Arbuzov2019-01-16 16:02:49
Sphinx
Alexander Arbuzov, 2019-01-16 16:02:49

Why doesn't wordforms work in sphinx?

Bitrix launched a search based on sphinx.
config

index default
{
  # Main settings
  type			= rt
  path			= /var/lib/sphinx/default/index
        wordforms       = /etc/sphinx/bx/dicts/wordforms.txt
  #docinfo 		= inline
        ondisk_attrs    = 1

  # Choose appropriate type of morphology to use
  morphology 		= lemmatize_ru
  blend_chars = +, U+23, *
  charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F, U+401->U+451, U+451

  # These settings are used by bitrix:search.title component
  dict 			= keywords
  min_prefix_len 		= 2
  min_stemming_len    = 2
  min_word_len        = 3
        <тут всякое про rt индексы>
  }

In the wordforms file, it says
glass > glass glass > glass
I check
in the console
mysql> call keywords('стаканч','default');
+------+----------------+----------------+
| qpos | tokenized      | normalized     |
+------+----------------+----------------+
| 1    | стаканч        | стаканч        |
+------+----------------+----------------+
1 row in set (0.00 sec)

mysql> call keywords('стаканчик','default');
+------+--------------------+--------------------+
| qpos | tokenized          | normalized         |
+------+--------------------+--------------------+
| 1    | стаканчик          | стаканчик          |
+------+--------------------+--------------------+
1 row in set (0.00 sec)

Can't find anything on the site either. What is not configured?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2019-01-16
@arbuzzz

Sphinx then restarted after a configuration change?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question