Comments (7)
You can do this already :) Try adding this to config/moonshine.yml (values may change depending on what you need)
:sphinx:
:extra:
:enable_star: 1
:allow_star: false
:min_infix_length: 0
:min_prefix_length: 1
Anything in this extra block gets put into the generated sphinx.yml at deploy time.
from moonshine_sphinx.
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.
from moonshine_sphinx.
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 [email protected] wrote:
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.
—
Reply to this email directly or view it on GitHub.
from moonshine_sphinx.
yes i have those lines. is the integer value for :enable_star important? I was using a boolean as per the Sphinx docs.
from moonshine_sphinx.
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
- Josh
On Oct 2, 2012, at 9:52 AM, Jim McKerchar [email protected] wrote:
yes i have those lines. is the integer value for :enable_star important? I was using a boolean as per the Sphinx docs.
—
Reply to this email directly or view it on GitHub.
from moonshine_sphinx.
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.
from moonshine_sphinx.
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?
from moonshine_sphinx.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moonshine_sphinx.