When the index does not exist automatically create index.
Add a new config item to indicated if automatically creating indices is enabled. If it is enabled and a index cannot be found (exception from elasticsearch/elasticsearch package) then create the index and mapping.