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
When calling Content.find(id).index! or Post.find(id).index! the current implementation creates a new index named Post instead of reusing the parent index Content. I've fixed this by specifying the index name:
Description
Calling
index!
in a model that uses STI creates a separate index with that model's name as its name.Steps to reproduce
My current setup has a parent model with a few sub-classes:
When calling
Content.find(id).index!
orPost.find(id).index!
the current implementation creates a new index namedPost
instead of reusing the parent indexContent
. I've fixed this by specifying the index name:I'm also aware I can do
Content.where(id: id).reindex!
and this will work.If this is expected behavior then would it be worth mentioning it in the docs?
The text was updated successfully, but these errors were encountered: