Exact text matches

12 views
Skip to first unread message

Greg DeVore

unread,
Mar 10, 2009, 10:40:53 PM3/10/09
to Thinking Sphinx
I have some lessons that I am searching. Once lesson has the word
"response" in it. Searching for "responsible" returns the lesson as
well as "responses" even though the actual word in the lesson is
"response". Is this the way things are supposed to work, and if so,
is there a way to force exact text matches?

Thanks

Pat Allan

unread,
Mar 15, 2009, 9:53:01 PM3/15/09
to thinkin...@googlegroups.com
Hi Greg

What you'll want to do is turn the stemming off, which means changing
the default morphology in your config/sphinx.yml file:

development:
morphology: ""
test:
morphology: ""
production:
morphology: ""

If you want this turned off for just specific models, you can add the
following into the define_index block:

set_property :morphology => ""

Cheers

--
Pat
Reply all
Reply to author
Forward
0 new messages