Elastic is used for search, log analysis and analytics.
MongoDB owns their code - Elastic does not own Lucene.