Ask Your Question
2

What is the difference between indexing in Elasticsearch and MongoDB?

asked 2021-07-14 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-11-20 03:00:00 +0000

djk gravatar image

Indexing in Elasticsearch and MongoDB differ in the following ways:

  1. Data Structure: Elasticsearch is a document-oriented search engine that stores data as JSON documents, whereas MongoDB is a document-oriented NoSQL database that stores data in BSON format.

  2. Search Capabilities: Elasticsearch provides a powerful search engine with advanced search and aggregation functionalities, while MongoDB provides basic search capabilities.

  3. Scalability: Elasticsearch is designed to be highly scalable, while MongoDB has some limitations when it comes to scaling horizontally.

  4. Querying: Elasticsearch uses a query language based on Lucene, while MongoDB uses a query language similar to SQL.

  5. Integration: Elasticsearch has built-in support for integrating with various data sources and tools, while MongoDB requires third-party connectors for integration with other data sources.

  6. Performance: Elasticsearch is optimized for near real-time search and allows for very high-speed querying and indexing. MongoDB may be slower in comparison, especially for large datasets.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-14 11:00:00 +0000

Seen: 18 times

Last updated: Nov 20 '21