Set up the sphinx all good, looking fast! I set it up for an online computer hardware store, there are a lot of word forms needed, I created a file with phrases

16гб > 16gb 16 гб > 16gb 16 gb > 16gb Intel > интел AMD > амд 

Everything is also good, but I have to look for such words with a hyphen, like:

 DDR-3 DDR-III TK-1140 

In general, I found there is such a parameter

 blend_chars = -, & 

Here is my config

 path = /var/lib/sphinxsearch/data/xxxx docinfo = extern mlock = 0 wordforms = /home/xxxx/pokupki/public_html/word.txt html_strip = 1 min_word_len = 2 index_exact_words = 1 morphology = stem_ru charset_type = utf-8 

Everything works, but as soon as I try to add a parameter for a hyphen, word forms stop working for me - wordforms

What to do? How to make search by words with a hyphen? and so that the word forms work I have to complement them very much and very much

    2 answers 2

    Configure charset_table . Here is my config:

     charset_table = 0..9, A..Z->a..z, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F, U+0401->U+0435, U+0451->U+0435,\ U+AD, U+002D,U+002D, U+2012, U+2013, U+2014, U+2015, U+2011, U+2010, -, _ 
       DDR-III=>DDR3 DDR-three=>DDR3 ------------------- blend_chars = U+2d 
      • one
        In Markdown, the horizontal bar is the markup for the title. Corrected on the code, it looks so normal. Minus is not mine, if that. ) - Nick Volynkin