In Sphinx Search, how do I add a hashtag to charset_table?

I would like people to be able to search #photographyas well photography. The Sphinx should consider two different words. The default is #photographymapped to photography, and I cannot search for hashtags.

I read this page so that you can add a hash tag to charset_table for this. I absolutely do not know how to do this. I do not know unicode, and I do not know what should be in my charset_table.

Can someone tell me what my charset_table should be? Thank.

# charset_table     = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F

Note. I plan to use a real time index. (not sure if it matters)

+3
source share
2 answers

U+0023 Unicode. ,

charset_table     = 0..9, A..Z->a..z, _, a..z, U+23, U+410..U+42F->U+430..U+44F, U+430..U+44F

charset_type. AFAIK, charset_table utf-8. , U+23 blend_chars, Sphinx .

+8
  

, #photography, . . #photography , .

  

.

, , :

.

sphinx engine, - . , - . aftet, .

.

0

All Articles