Looking to index a CSV file to ElasticSearch, without using Logstash.
I am using the elasticsearch-dsl
high level library.
Given a CSV with header for example:
name,address,url
adam,hills 32,http://rockit.com
jane,valleys 23,http://popit.com
What will be the best way to index all the data by the fields? Eventually I'm looking to get each row to look like this
{
"name": "adam",
"address": "hills 32",
"url": "http://rockit.com"
}
This kind of task is easier with the lower-level
elasticsearch-py
library:If you want to create
elasticsearch
database from.tsv/.csv
with strict types and model for a better filtering u can do something like that :