Mike
Mike

Reputation: 1210

Thinking_Sphinx search options

Similar Stack Overflow Question

I want users to be able to search through my thinking_sphinx text box a word like wood and have it pull up Wooden and Woodworking. This words fine if the user types in wood*, but if they type in just wood with no * then no results are shown. If there a way to get the results of wood* without having to type in the asterisk. Most users aren't that smart.

Upvotes: 1

Views: 672

Answers (3)

nomynus
nomynus

Reputation:

just pass :star => true along ;)

Upvotes: 1

Ben Crouse
Ben Crouse

Reputation: 8348

I think you could get what you're trying to achieve with wordforms in your sphinx configuration. See the documentation here: http://sphinxsearch.com/docs/current.html#conf-wordforms.

You can utilize more advanced Sphinx configuration with a sphinx.yml file. See the following: http://freelancing-god.github.com/ts/en/advanced_config.html

Upvotes: 1

Ben Hughes
Ben Hughes

Reputation: 14185

can you append an asterisk at the end of user data before sending it to search?

Upvotes: 2

Related Questions