I’ve been trying to get Thinking Sphinx for Ruby to handle prefixes and/or star, and every time i generate a new configuration file, it seems to ignore it.
Here’s the line I added:
define_index do
[... Stuff ...]
set_property :min_prefix_len => 1
end
And then I run:
rake ts:config
rake ts:in
rake ts:run
And nothing new. I keep checking the config file, and it never changes due to this. I even manually go in and change the file, and then in is replaced with a file without anything relating to min_prefix. Any thoughts?
Edit —
I don’t have a .yml file right now.
The answer to the question ended up being:
-Upgrade to more recent version of TS – older versions (<1.3.14) do not support multiple indexes
-The define index blocks need to be setup like this:
-Calling the search function needs to specify the index or it will search across all indexes –