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
Atomic reindex (ex: Product.reindex) is always going to create tmp index with empty setting when check_settings=true. When index move completed, previous settings disappeared. Not only specified settings inside algoliasearch block, but manual setting on dashboard.
When check_settings=false this problem seems not happening.
When check_settings=true, after task done the settings of new index is always empty even though settings(customRanking,searchableAttributes,...) described in algoliasearch block (See Step to Reproduce).
By the way, I executed set_settings command manually with my setting like below and it does work. So I guess it happens because algolia_ensure_init missed when check_settings=true.
class Product < ApplicationRecord
algoliasearch check_settings: true do
attribute :title
attribute :content
attribute :updated_at_i
customRanking ['desc(updated_at_i)']
searchableAttributes ['title']
indexLanguages ['ja']
end
end
in rails console for instance
Product.reindex
# Check dashboard, all specified settings are disappeared.
# Not only specified settings inside algoliasearch block, but manual setting on dashboard.
The text was updated successfully, but these errors were encountered:
Description
Atomic reindex (ex: Product.reindex) is always going to create tmp index with empty setting when
check_settings=true
. When index move completed, previous settings disappeared. Not only specified settings inside algoliasearch block, but manual setting on dashboard.When
check_settings=false
this problem seems not happening.When
check_settings=true
, after task done the settings of new index is always empty even though settings(customRanking,searchableAttributes,...) described in algoliasearch block (See Step to Reproduce).By the way, I executed
set_settings
command manually with my setting like below and it does work. So I guess it happens becausealgolia_ensure_init
missed whencheck_settings=true
.Please check PR for better understanding. #453
Steps To Reproduce
app/models/product.rb
in rails console for instance
The text was updated successfully, but these errors were encountered: