Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Indexing Mysql Database with elasticsearch

I recently started looking ElasticSearch to implement search in my application. I have my database in Mysql which have approx. >2 mn records. I know in sphinx we could create an index directly on any mysql table column. I wanted to know if its possible in Elasticsearch, if not directly how we could implement that?

Thanks Mohit

like image 490
Mohit Jain Avatar asked Dec 23 '11 07:12

Mohit Jain


1 Answers

There is no native support (at this time) for mysql in Elastic Search like there is in Sphinx.

Elastic Search is a great option for search, but you'll have probably to do some custom work to trigger reindexing of items when they change in your database. Exactly how that is accomplished will depend alot on your application. Elastic Search has great near real time search functionality, and has been proven to perform well under heavy indexing load so triggering reindexing shouldn't a concern for most applications.

The NoSQL movement seems to gaining steam as well. Some applications use Elastic Search as the only data store.

like image 163
Andy Avatar answered Sep 30 '22 23:09

Andy