Solr vs Elastic Search









41914

We aggregate and tag open source projects. We have collections of more than one million projects. Check out the projects section.

It acts as a search server.

It supports Java API and REST interface.

Document schema and type is required.

Document (Data) need has to be flat. Nested elements are not allowed.

Faceted search - Shows count for each categories in the search results.

Geo spatial search - Search by location and distance. (Search within 5 KM from the current position).

Has capabilities to import data from database.

Replication - Index could be replicated and provides support for failover.

Distributed Search - Search could be performed on multiple shards / indexes and the results will be aggregated.

Supports near real time search.

Hit highlighting the search results.

It has built in capabilities to extract the file contents from the file system and add it as part of index.

Larger community, a larger user base.

It acts as a search server.

It supports Java API and REST interface.

Document schema and type is NOT required.

Document (Data) need not to be flat – they can be nested as they are pure JSON.

Faceted search - Shows count for each categories in the search results.

Geo spatial search - Search by location and distance. (Search within 5 KM from the current position).

Replication - Index could be replicated and provides support for failover.

Supports near real time search.

Hit highlighting the search results.

Distributed Search - Search could be performed on multiple shards / indexes and the results will be aggregated.

Distributed Indexing - Given the set of nodes, Document should be routed to different shards / index. It could be based on round-robin or some way of hashing.

It adds and removes nodes and handles the request from the correct node.

Each node saves its state in the shared storage. When a node comes back after failure or shutdown, It could recover its state from its replica group.

Smaller community, and smaller user base.

Solr and Elastic Search are built on top of Lucene. Both are open source and both have extra features which makes programmer life easy. This article explains the difference and the best situation to choose between them.Both are standalone application and both are scalable and distributed. If you require a Single stand alone server or Single indexer and multiple searcher then you could go with either Solr or Elastic Search. If you want distributed indexing then you need to choose Elastic search. Elastic search is preferable for cloud and distributed environment.