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!