Elasticsearch index settings in pig?

Is it possible using the elasticsearch-hadoop connector in pig to create an
index or set settings when the index autocreates such that it applies the
following setting?

$ curl -XPUT 'http://localhost:9200/twitter/' -d '{

"settings" : {

"index" : {

    "number_of_shards" : 3,

    "number_of_replicas" : 2




Or does the index have to be created before the pig script is run?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/542e654e-f0a8-429e-8e0a-52297d0459ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.