You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm having the issue with suggestions raising Pass suggest: true to the search method for suggestions when there is no data to be indexed, however index has been built.
Products.count => 0
Products.reindex
result = Product.search('some words', suggest: true)
result.suggestions => Pass suggest: true to the search method for suggestions
This reads similar to #1042 but I'm on 3.1.0 already.
Hey @liang3404814, be sure to follow all the instructions in the Suggestions section of the readme. If that doesn't work, please use the gist in the Contributing Guide to reproduce.
Hey @liang3404814, unfortunately, that gist is not runnable. Please follow the format of the gist in the Contributing Guide. Also, there's no such thing as match: :suggest, so that could be the problem.
Hi, I'm having the issue with
suggestions
raisingPass suggest: true to the search method for suggestions
when there is no data to be indexed, however index has been built.Products.count => 0
Products.reindex
result = Product.search('some words', suggest: true)
result.suggestions =>
Pass suggest: true to the search method for suggestions
This reads similar to #1042 but I'm on 3.1.0 already.
(it looks like https://github.com/ankane/searchkick/blob/master/lib/searchkick/results.rb#L86 tries to handle the situation for when
term
is "*", but not for other cases)The text was updated successfully, but these errors were encountered: