ropensci / elastic

R client for the Elasticsearch HTTP API
https://docs.ropensci.org/elastic
Other
245 stars 58 forks source link

fix example in mapping_create #199

Closed sckott closed 6 years ago

sckott commented 6 years ago
file <- system.file("examples", "gbif_geopoint.json", package = "elastic")
invisible(docs_bulk(file))
body <- '{
  "properties" : {
    "location" : { "type" : "geo_point" }
  }
}'
mapping_create("gbifgeopoint", "record", body = body)
#> Error: 400 - Can't merge a non object mapping [location] with an object mapping [location
sckott commented 6 years ago

maybe https://discuss.elastic.co/t/filter-or-output-plugin-complains-cant-merge-a-non-object-mapping-with-an-object-mapping/46665?source_topic_id=81841