This is a full text search question. I was using Elasticsearch for my logging system. And now I heard that MongoDB also supports full text search and tested the performance. I made a text index and tested it. With 10,000 words, 10 million documents were created. And it looked up two words. (ex. "apple pineapple") The results were surprising. MongoDB searches were faster.
Am I misunderstanding full text search in Elasticsearch?? did i do the test wrong? In terms of full text search performance, is there no reason why Elasticsearch should be used? Am I misunderstanding full text search?? Please teach me.
did i do the test wrong?
- how do we know if you didn't share your tests? Mongodb added support for full text search. It's not it's primary function and you can find many questions here on SO where people struggle with lack of some functionality they had in Elasticksearch - the purpose built fulltext search engine. It's one of the reasons why Mongo db provides seamless integration with Elasticsearch in their commercial offering on Atlas. If you need mongo functionality and its fulltext is sufficient for your usecases go for it. – Generate