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
If your model's settings are incorrectly configured, .reindex! will update your index while silently failing to update your index's settings. There's no indication given that anything is misconfigured, making any problems with your settings difficult to diagnose.
Steps To Reproduce
I have a Rails model that looks like this:
classMyModelalgoliasearchdoattribute:titleattribute:nameattributesForFaceting[:title,:name]# Correctly configuredcustomRanking['asc(title)','name']# Incorrectly configured, name must be 'asc(name)' or 'desc(name)'endend
Running MyModel.reindex! will reindex correctly, but customRanking and attributesForFaceting will silently fail to update because customRanking is incorrectly configured.
There should be an error given so that the user can fix the problem.
The text was updated successfully, but these errors were encountered:
As a partial workaround, it's possible to see the errors by running MyModel.algolia_set_settings, which will visibly fail if your settings are incorrectly configured.
Description
If your model's settings are incorrectly configured,
.reindex!
will update your index while silently failing to update your index's settings. There's no indication given that anything is misconfigured, making any problems with your settings difficult to diagnose.Steps To Reproduce
I have a Rails model that looks like this:
Running
MyModel.reindex!
will reindex correctly, butcustomRanking
andattributesForFaceting
will silently fail to update becausecustomRanking
is incorrectly configured.There should be an error given so that the user can fix the problem.
The text was updated successfully, but these errors were encountered: