-
Notifications
You must be signed in to change notification settings - Fork 119
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
Model.reindex raises AlgoliaProtocolError: "attributesToIndex" is deprecated #357
Comments
Can you share your model |
Hi Julie! Here's the gem info from our
It began fairly recently, but the last changes to our Gemfile at these lines was 9 months ago. Since the errors are a new response I think it's happening on Algolia's side. Store model block (simplified, but still accurate):
from console:
|
@chigginsiii I'm having the same problem as this, did you ever work out what was going on? |
I think I've figured it out. For some reason, for some indices Here's the correct behavior:
However, in another environment (same model, just a different index name - I have
While some libraries post-process settings, the I'm not sure what's the logic for this behavior on the Algolia side, why and when it decides to return one key versus another. |
Having the same issue here... is there any update? Thanks! |
@mustela Deleting my algolia indexes completely and rebuilding them ended up fixing the issue for me. |
@1vasari yeah... .but that cost a lot of money, specially if you have millions of records :) |
@mustela Ouch. That sucks. As I understand it @drdaeman is close the the issue. When debugging this I found that I don't know the best method, but the solution is to remove the Hope this helps :) |
Description
Recently, our models started raising exceptions when trying to
reindex
. Example (paths/user edited out):Steps To Reproduce
algoliasearch
. Then within that block, define bothattributes
andsearchableAttributes
.Model.reindex!
still works,Model.reindex
raises an error.The text was updated successfully, but these errors were encountered: