Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save made-by-love/5481797 to your computer and use it in GitHub Desktop.
Save made-by-love/5481797 to your computer and use it in GitHub Desktop.
Why is there no such DataImportHandler thing in ElasticSearch? Uhm, well ... but because:
1. You should really consider your own scripts
(be it jvm based, perl, ruby, php, nodejs/javascript)
to feed ElasticSearch via bulk indexing:
http://www.elasticsearch.org/guide/reference/java-api/bulk.html
2. There are two projects doing it already:
* http://code.google.com/p/sql-to-nosql-importer/
* https://github.com/Aconex/scrutineer (keeps DB in synch with ES or solr!)
3. In theorie you could use DIH in elasticsearch as well ;)
http://www.mattweber.org/2011/12/14/elasticsearch-mock-solr-plugin/
4. In mysql you could add an http trigger:
http://code.google.com/p/mysql-udf-http
5. You could use hydra and start with the 'correct' & scalable
solution: https://github.com/Findwise/Hydra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment