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
Hey, I think that it would be a nice addition if when there is no index present when a search is called, it attempts to create one.
For example, Product.search() should call Product.reindex if the Product.search() fails due to there being no index present.
Which brings me to a question: When should I call Product.reindex? I feel like an initializer is a bad place, as that causes rake tasks to fail when the Product table isn't present (can't recreate the database with the initializer script present).
Thanks!
PS: This gem is actually amazing and I love you forever for it.
The text was updated successfully, but these errors were encountered:
Hey, I think that it would be a nice addition if when there is no index present when a search is called, it attempts to create one.
For example, Product.search() should call Product.reindex if the Product.search() fails due to there being no index present.
Which brings me to a question: When should I call Product.reindex? I feel like an initializer is a bad place, as that causes rake tasks to fail when the Product table isn't present (can't recreate the database with the initializer script present).
Thanks!
PS: This gem is actually amazing and I love you forever for it.
The text was updated successfully, but these errors were encountered: