How could I make Sphinx to recognize “auto” and “car” as similar words?
Let’s image I have three database records
Andy likes to drive auto.
Mary don't like to drive car.
Bob is going to buy automobile.
Here is sample queries and it’s results…
query: car
result: Mary don't like to drive car.
-------------------------------------
query: auto
result: Andy likes to drive auto.
-------------------------------------
query: automobile
Bob is going to buy automobile.
..but I want sphinx to return…
query: car
result:
Andy likes to drive auto.
Mary don't like to drive car.
Bob is going to buy automobile.
-------------------------------------
query: auto
result:
Andy likes to drive auto.
Mary don't like to drive car.
Bob is going to buy automobile.
-------------------------------------
query: automobile
result:
Andy likes to drive auto.
Mary don't like to drive car.
Bob is going to buy automobile.
I know that Sphinx have stowords, but what should I put into stopwords dictionary to make Sphinx think this way?
Thank you.
all you have to do is supply sphinx with a correctly-formatted text file of wordforms in your .conf file.
documentation found here: http://www.sphinxsearch.com/docs/manual-0.9.9.html#conf-wordforms