{"id":15368690,"url":"https://github.com/edwardsmit/csv_to_es","last_synced_at":"2026-05-01T15:38:41.440Z","repository":{"id":73146973,"uuid":"192333752","full_name":"edwardsmit/csv_to_es","owner":"edwardsmit","description":"POC for loading a CSV into Elasticsearch","archived":false,"fork":false,"pushed_at":"2019-06-17T11:39:42.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T00:13:00.959Z","etag":null,"topics":["csv-importer","elasticsearch","elixir"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edwardsmit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-17T11:28:31.000Z","updated_at":"2019-06-17T11:39:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddafbd29-3126-458c-94e6-a4874042c26c","html_url":"https://github.com/edwardsmit/csv_to_es","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"3af32f538cf2fbd618d7caf4130f90b8aa7e601f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardsmit%2Fcsv_to_es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardsmit%2Fcsv_to_es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardsmit%2Fcsv_to_es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardsmit%2Fcsv_to_es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edwardsmit","download_url":"https://codeload.github.com/edwardsmit/csv_to_es/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245931200,"owners_count":20695953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv-importer","elasticsearch","elixir"],"created_at":"2024-10-01T13:30:41.843Z","updated_at":"2026-05-01T15:38:41.379Z","avatar_url":"https://github.com/edwardsmit.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CsvToEs\n\nThis is a POC to parse a CSV in a streaming fashion and store a JSON-object\nderived from a CSV-line in Elasticsearch, using the Bulk-API of Elasticsearch.\n\n## Build\n\n```shell\nmix escript.build\n```\n\n## Load a CSV\n\n```shell\n./csv_to_es \u003cFILENAME\u003e\n```\n\n## Limitations\n\n* Currently only a `;`-separated file is supported which must have a header-line\nfor naming the ES-doc-fields. This project has only been tested with a\nbagadres-full.csv file downloaded from NLExtract.nl\n[download](https://data.nlextract.nl/bag/csv/bag-adressen-full-laatst.csv.zip)\n* Elasticsearch is expected to run at [localhost](http://localhost:9200)\n* As we don't create an `_id` field explicitly, multiple runs of the tool will\ncreate duplicates\n* The batch-size is fixed at 1_000 this figure has been made up with no test\nor knowledge whatsoever\n* The time-out of 60s has been chose as \"large enough\" to avoid timeouts\n* No error-handling is implemented\n* The target index is hardcoded to `elixir-csv`\n\n## Tip\n\nBefore running this tool you'd best set the `number_of_replicas` to `0` and the\n`refresh_interval` to `-1` for the target-elasticsearch-index `elixir-csv`\n\n## Can I use this in Production\n\nProbably not as is\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwardsmit%2Fcsv_to_es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedwardsmit%2Fcsv_to_es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwardsmit%2Fcsv_to_es/lists"}