A
A
Anna2020-07-20 19:39:37
Sphinx
Anna, 2020-07-20 19:39:37

Sphinx search how to update wordforms list for Bitrix?

Good afternoon! I ran into a problem - they had already set up all the configurations before me and wordforms worked out perfectly. Site on Bitrix
I was asked to add a list of new synonyms and I inserted them into the wordforms.txt file, restarted the sphinx and ... nothing. No changes.
I found posts on this topic where everyone says that you need to delete / rename the existing index.
Here is one of them https://vk.com/topic-20032698_32035633 .
Example of a synonym:
asberg =>
iceberg iceberg => iceberg
isberg => iceberg Please tell me

how to update the list of word forms correctly? I will be very grateful for detailed answers, because I have little experience (almost none) with sphinx and databases.

Just in case, I want to add from the observations of the database. As you can see, everything is entered correctly in the database, as it is written in wordforms. But there is silence in Bitrix, it does not react to new words from the word at all.
5f161283350cc205177663.jpeg

And configurations (taken, apparently from Bitrix)

index testrt
{
    type            = rt
    rt_mem_limit        = 128M
    enable_star = 1
    expand_keywords = 1
    index_exact_words = 1
    min_prefix_len = 2
    html_strip = 1
    morphology = stem_enru, soundex, metaphone

    dict = keywords
    prefix_fields = title

    path            = /var/lib/sphinxsearch/testrt

    wordforms = /etc/sphinxsearch/wordforms.txt
  # All fields must be defined exactly as followed
          rt_field = title
    		rt_field = body
    		rt_attr_uint = module_id
    		rt_attr_string = module
    		rt_attr_uint = item_id
    		rt_attr_string = item
    		rt_attr_uint = param1_id
    		rt_attr_string = param1
    		rt_attr_uint = param2_id
    		rt_attr_string = param2
    		rt_attr_timestamp = date_change
    		rt_attr_timestamp = date_to
    		rt_attr_timestamp = date_from
    		rt_attr_uint = custom_rank
    		rt_attr_multi = tags
    		rt_attr_multi = right
    		rt_attr_multi = site
    		rt_attr_multi = param

}


Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2020-07-20
@opium

reindexing is done in the Bitrix admin panel

A
alexneverovich, 2022-02-05
@alexneverovich

Suddenly who is asked still by this question: It is
necessary to execute
ALTER RTINDEX testrt RECONFIGURE;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question