It should be noted:
[1] Unlike MongoDB (which is a ground-up build), Elasticsearch is basically an API layer on top of Apache Lucene. This is relevant because they haven't built and don't maintain, control, or own the source of their primary IP.
[2] Unlike MongoDB (General Purpose) Elasticsearch is a single purpose database and good at/used for one thing and one thing only. It searches text fields for text.
So its potential use cases and thus marketshare is far more limited.
[3] Posts on stackoverflow with the tag:
elasticsearch × 34,253 mongodb x 103,478