2

I am using the Thinking Sphinx gem. Is there a way to configure it so that it includes the plural and singular word in the search results?

For example: "Dog" will find "Dogs" "Service" will find "Services"

I believe any search capability should have this sort of action.

Cornelius Wilson
  • 2,844
  • 4
  • 21
  • 41
  • 1
    Have a look at word stemming or morphology -> http://sphinxsearch.com/docs/current.html#conf-morphology – usha Aug 13 '14 at 20:05
  • For adding individual cases, use `wordforms`. – Daiku Aug 14 '14 at 13:57
  • possible duplicate of [Enabling stemming from sphinx.yml in Thinking Sphinx](http://stackoverflow.com/questions/1173777/enabling-stemming-from-sphinx-yml-in-thinking-sphinx) – Brad Werth Sep 11 '14 at 23:08

1 Answers1

2

You have to add morphology to the thinking sphinx yml file.

development:
  morphology: stem_en
xps15z
  • 1,769
  • 1
  • 20
  • 38