Elastcisearch Hadoop customized index mapping?


#1

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!


(James Baiera) #2

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.


(system) #3

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