Reindex after insert into repo?
marucjmar opened this issue · comments
Hi,
Always have to run reindex when my model insert to repo?
Example code:
def create_subject(attrs \\ %{}) do
{:ok, subject } = %Subject{}
|> subject_changeset(attrs)
|> Repo.insert()
MyAwesomeApp.ESx.reindex MyAwesomeApp.MyAwesomeModel.Subject
subject
end
Why Ecto model not indexing automatically document when insert to Repo?