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

Pass `suggest: true` to the search method for suggestions #1042

Closed
fandyd opened this Issue Dec 14, 2017 · 1 comment

Comments

2 participants
@fandyd

fandyd commented Dec 14, 2017

Im having the issue with suggestions with no data in the index, index has been build

result = Product.search('*', suggest: true)
result.size
0
result.suggestions.present?

RuntimeError: Pass suggest: true to the search method for suggestions
from /Users/fd/app/vendor/bundle/ruby/2.3.0/gems/searchkick-2.4.0/lib/searchkick/results.rb:81:in `suggestions'

@ankane ankane closed this in 243419c Dec 20, 2017

@ankane

This comment has been minimized.

Show comment
Hide comment
@ankane

ankane Dec 20, 2017

Owner

Hey @fandyd, thanks for reporting 👍 Fixed on master.

Owner

ankane commented Dec 20, 2017

Hey @fandyd, thanks for reporting 👍 Fixed on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment