Search code examples
searchcouchdbelasticsearchdiskspace

Searching in couchdb or do river thru an elastic search


I understand we create views on couchdb and then we can search. Another interesting approach is to connect couchdb with elasticsearch thru river and search in elasticsearch. I have two questions:

  • in terms of disk space usage, will elasticsearch be more efficient?
  • what would be the pros and cons of using couchdb search vs using elasticsearch on top of couchdb?

Thanks!


Solution

  • In terms of disk usage:

    As Marcin pointed out, Elasticsearch excels in full-text-search and its flexibility of analyzer and search functionality.