Skip to content
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

Error on simple search #13

Closed
rebebop opened this issue Aug 13, 2013 · 2 comments
Closed

Error on simple search #13

rebebop opened this issue Aug 13, 2013 · 2 comments

Comments

@rebebop
Copy link

rebebop commented Aug 13, 2013

Hi,
I am getting an error on simple search. The error is
"nested: IllegalArgumentException[minimumSimilarity >= 1];"
One of the things I am doing differently is, I already have an elasticsearch database and I don't have any other database so that's the primary data source. That's the reason I cannot called the "reindex" function on it. So I tried to manually add all the settings "searchkick" adds to the elasticsearch instance. And now in my settings I can see all the analyzers but still I am getting this error. Is there something else that needs to be added?

@ankane
Copy link
Owner

ankane commented Aug 13, 2013

This error comes from Elasticsearch before 0.90.0. You'll need to upgrade Elasticsearch or fork the library and change fuzziness to be less than 1 (although the 2nd approach breaks some of the tests). The fuzziness parameter used to only take numbers between 0 and 1, but now it also takes an integer for max edit distance.

@rebebop
Copy link
Author

rebebop commented Aug 14, 2013

I just upgraded to 0.90.0 and it works perfectly now. Thanks

@rebebop rebebop closed this as completed Aug 14, 2013
@lock lock bot locked as resolved and limited conversation to collaborators Dec 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants