zilla
zilla

Reputation: 952

Tire + Elastic Search - Forcing Import

In the tire gem's README, I see they propose two ways to import a model:

rake environment tire:import CLASS='Article'
rake environment tire:import CLASS='Article' FORCE=true

I can appreciate that the FORCE=true will delete the index before reindexing, but what is the benefit in doing so?

Upvotes: 4

Views: 896

Answers (1)

karmi
karmi

Reputation: 14419

Deleting and recreating the index from scratch is useful mainly when you change the model mapping during development.

Upvotes: 4

Related Questions