Importing csv file to elasticsearch


(usha2626) #1

hey,

I am trying to import a csv file into elastic search and for a file it is
working fine and if I change the CSV file it is not working then.
It is gettig renamed from book.csv to book.csv.processing but index is not
creating in elastic search.

i have wrote the follwing code

{
"type": "csv",
"csv_file": {
"folder": "E:\",
"filename": "book.csv",
"poll": "5m",
"fields": [
"id",
"cat",
"name",
"price",
"inStock",
"author",
"series_t",
"sequence_i",
"genre_s"
],
"field_separator": ",",
"escape_character": ";",
"quote_character": "'"
},
"index": {
"index": "student",
"type": "csv_row",
"bulk_size": 200,
"bulk_threshold": 50
}
}

suggest what to do next.....

--
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/e091fdd0-b6ab-42f8-9229-b6432effd789%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #2