Improve massindexer with Elasticsearch by disabling some refresh and replication

Description

Consider in MassIndexer to set refresh period to -1 (i.e. infinite) while doing mass indexer and then set back to the default value when it's done.
Also consider changing the replicat # to 0 while indexing and back to its value when done. That's a bit dangerous so only do on initial indexing (fresh index without usage?).

Environment

None

Status

Assignee

Unassigned

Reporter

Emmanuel Bernard

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major