Do not optimize the indexes by default after mass indexing and document the drawbacks

Description

Apparently the optimize operation (called force-merge in Elasticsearch) can have unintended, harmful side effects: see the warning in https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html#indices-forcemerge

Thus we probably should avoid calling optimize by default in the mass indexer, and mention that only people who know what they are doing should use this.

Also, we should rename “optimize” to “forceMerge”, like they did in Elasticsearch and Lucene, to clear any ambiguity.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure