METAMODEL-84: Use ElasticSearch document ID as primary key and enable
optimized PK lookup queries.
METAMODEL-88: For the ElasticSearch module find a better way than sleep to ensure data is in sync.