this may be useful for the documentation.
Here are some simple steps for creating an elasticsearch index.
This creates an index called manifoldcf with a mapping named attachment which has some generic fields for access tokens and a field file which makes use of the elasticsearch attachment mapper plugin. It is configured for highlighting ("term_vector" : "with_positions_offsets").
The following part is useful for not saving the source json on the index which reduces the index size significantly. Be aware that you shouldn't do this if you need to re-index data on the elasticsearch side or you want access to the whole document.