   commands.push(m)
 client.indices.delete {index:"movies"}, (err, res)->
   console.log(err, res)
-  client.indices.create {index:"movies"}, (err, res)->
+  client.indices.create {index:"movies", body:{settings:settings}}, (err, res)->
     console.log(err, res)
+
     client.indices.putMapping mapping, (err, res)->
       console.log(err, res)
       client.bulk {body:commands}, (err, res)->

  def

# console.log processedMovies
mapping = {
  index:"movies"
  type:"movie"



client = new elasticsearch.Client({
  host:args[0] or "localhost:9200"
})


