Elastcisearch Hadoop customized index mapping?

Is there a way that I can create an index mapping (with customized analyzer for different fields) directly in pig using elasticsearch-hadoop? Or do I have to pre-define the mappings?
I am thinking if it is possible to do something like 'es.mapping=XXX' where XXX is a json file with mapping info

STORE result INTO 'index/type' USING org.elasticsearch.hadoop.pig.EsStorage('es.input.json = true', 'es.nodes=$ES_HOST' );

Any comments? Thanks for you help in advance!

Unfortunately we do not have any way to define the ES mapping from within Pig or ES-Hadoop. The mapping must be already existing, or rely on something like an index template.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.