Hello,
i am new to elasticsearch and i am trying to import a csv file.
can anyoone help?
an example csv file :
name comment
me hello
json file
{
"type" : "csv",
"csv_file" : {
"folder" : "~/test",
"filename_mask" : ".*\.csv$",
"poll":"5m",
"fields" : [
"name",
"comment",
],
"field_separator" : " ",
"escape_character" : ";",
"quote_character" : "'"
},
"index" : {
"index" : "eriks import",
"type" : "csv_row",
"bulk_size" : 10000,
"bulk_threshold" : 50
}
}
but i get an error when i do :
curl -XPOST http://localhost:9200/_river/my_csv_river/_meta -d
insertrivercsv.json
i get :
{"error":"MapperParsingException[failed to parse]; nested:
ElasticSearchParseException[Failed to derive xcontent from (offset=0,
length=19): [105, 110, 115, 101, 114, 116, 114, 105, 118, 101, 114, 99,
115, 118, 46, 106, 115, 111, 110]]; ","status":400}[
what does this mean?
--
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/d5d95d5e-e3b3-493c-8e7b-302728bc40d3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.