I would like to be able to store mappings for my indices in a json/yml
file, so that whenever I add a document to the index, I don't have to
specify a mapping via the put_mapping api call. The documentation
seems to have multiple places for configuring something like that:
:" The simplest manner is to simply define a file called
default-mapping.json and placed it under the config directory"
: "Mappings can be defined within files called [mapping_name].json and
be placed either under config/mappings/_default location, or under
config/mappings/[index_name] (for mappings that should be associated
only with a specific index)." There seems to be conflicting
information about how to store the name of the mapping. Is it
config/mapping/[index_name] or config/mapping/[index_name].json ?
The thing is that none of these options seem to work. Does anyone
have a working mapping file that works? I'm using ES 0.14.1.