Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Acronyms with Sphinx search engine

how can i index acronyms like 'm.i.a.'? when i search for 'mia', i get results for 'mia' and not 'm.i.a.'. when i search for 'm.i.a.', i get nothing at all.

edit:

solution looks roughly like: ignore_chars = -, .

like image 897
Carson Avatar asked Dec 30 '25 02:12

Carson


1 Answers

you could add '.' to your ignored character list: http://www.sphinxsearch.com/docs/current.html#conf-ignore-chars

or you could maybe add m.i.a. > mia as a wordform: http://www.sphinxsearch.com/docs/current.html#conf-wordforms

like image 164
Ty W Avatar answered Dec 31 '25 19:12

Ty W