-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to search for partial terms #5
Comments
You can do this already :) Try adding this to config/moonshine.yml (values may change depending on what you need)
Anything in this extra block gets put into the generated sphinx.yml at deploy time. |
Hmmm. I've already tried in the extra block with no success. Just had a conversation with @railsmachine on twitter and was recommended to open this as an issue. |
I know, I was watching ;) That :extra option hasn't always been there, so you may need to update moonshine_sphinx to get it working. You'd be able to tell if you are up to date if your vendor/plugins/moonshine_sphinx/templates/sphinx.yml has these lines: https://github.com/railsmachine/moonshine_sphinx/blob/master/templates/sphinx.yml#L10-13 On Oct 2, 2012, at 9:46 AM, Jim McKerchar notifications@github.com wrote:
|
yes i have those lines. is the integer value for :enable_star important? I was using a boolean as per the Sphinx docs. |
Not sure, I just pulled those examples from ones I found. What does the generated sphinx.yml look like after deploy? ie /sv/app/shared/config/sphinx.yml
On Oct 2, 2012, at 9:52 AM, Jim McKerchar notifications@github.com wrote:
|
sphinx.yml... production: searchd_file_path: /srv/****/shared/sphinx/production searchd_files: /srv/****/shared/sphinx/production config_file: /srv/****/shared/config/sphinx.conf log: /srv/****/shared/log/searchd.log query_log: /srv/****/shared/log/searchd.query.log pid_file: /srv/r****/shared/log/searchd.pid bin_path: /usr/local/bin version: 0.9.8 address: 127.0.0.1 mem_limit: 64M enable_star: 1 min_infix_len: 3 The yml looks ok, but it isn't searching as i'd expect. I have "house" indexed but if i search for "hou" no results are returned. I'm now thinking i've got my wires crossed somewhere (can you maybe shed some light on this). I'll close this as it obviously isn't an issue... more a misunderstanding on my part. thankyou. |
No problem. I haven't messed with the infix length before, so can't help much there. Maybe try on the thinking-sphinx mailing list? |
Sphinx allows configuration of wildcard searches and searches for partial terms using :enable_star and :min_infix_len/:min_prefix_len, it would be useful to be able to configure these within moonshine.yml.
Thanks
The text was updated successfully, but these errors were encountered: