78 points · by based2 · 10y ago · 31 comments
- Solr comes with optional security config; Elastic charges for Shield. At the time of the evaluation, Shield pricing wasn't online (and there were hints online it starts at 1600/year and goes upwards from there).
- Elastic can have a 'split brain' from time to time, and some data can be lost.
- Elastic is more user friendly, but that comes at a price of installing Kibana + other software. Solr is all-in-one.
- Both will let you shoot yourself in the foot with dynamic fields and schema, but if you go the hardcoded schema way, solr is easier to setup.
- Solr has DataImportHandler, which makes configuring the entire DB import from an existing database, 2 minutes job once you know what you are doing. The import seemed to be doing 50k records / second, and it can also do partial syncs if things have changed.
- Performance wise, they are both overkill if one is staying away from managed schemas and provide decently beefed-up VMs. But Solr+DataImportHandler, gives you one more option (aside from zookeeper) for cheap scaling. If you have mostly read heavy instances, you can put separate VMs behind a load balancer to ensure near 100% uptime and robustness, with the minimal fuss of clicking a button once a month to add the deltas to the separate VMs.
Theoretically possible, perhaps; in practice, just not an issue. Our initial cluster suffered from it thanks to improperly having been run across data centers with default settings of various kinds.
Once I got that under control, zero recurrence despite our clusters living in what I like to call a 'hostile network environment.'
I am not a fan of the 'Zen' cluster management system they adopted; but it does work and Elastic has put a ton of work into cleaning out the corner cases.
For my purposes,
One of the distinctions I would say is most interesting today is that Elastic the company has been aggressively chasing the analytics market, at the expense of developing the text/freeform search capabilities of ES.
At Elasticon last year there were some interesting talks that touched on this in various ways; and I was part of a group of people who traded chagrin that Elastic does not have a strong user community in this area.
Instead they have put a lot of work on their 'stack' and data shippers and cloud deployment.
Solr on the other hand has continued to move forward and for an environment in which the primary application is going to be free-form text search (vs. say structured metadata, or analytics) it is probably stronger.
Fwiw I find deployment, configuration, inspection, etc., all refreshingly clean. Imperfect, sure, but the ES team did have the advantage of starting with a blank page in a lot of respects. It shows.
(Currently running 6+ clusters, 100+ nodes, doing metadata and full-text and a small amount of analytics)
In the end I chose Solr because it comes with 'ecosystem' of semi-related projects that you can pull on (spark, ambari, etc etc).
On a sidenote, I'm personally more comfortable with forkable sourcebases, than singular companies with paid plugins. I've been too long in this industry and have seen all kinds of dirty tricks pulled off.
One other plus for Solr is it has a flexible replication and consistency model, out of the box - much better fit for large clusters and multi data center deployments (or multi region high availability AWS deploys).
Elastic lacks in replication area (although something appears to be coming soon, via again their paid plugins).
- Easier (linux-pks) install and setup a small cluster
- "Just throw some data at it"
- JSON and pure REST
While ES is still more compact and faster/easier to install, Solr has of course grown up with robust SolrCloud scaling, start scripts, schemaless mode and all the config APIs.
And I think the change of mindset from files to APIs is crucial. Your search engine should be like a DB, just install it and then start using it from a client. Your schema stays close to your data in your app where it belongs.
A few next important steps for Solr which are being worked on are
- New set of APIs /v2/ that gives a more unified experience
- More analyzers/tokenfilters/components configurable via APIs
- Easier getting-started with basic auth and SSL, add LDAP and more
- Mature the streaming/SQL stuff
All in all, the competition drives both products to new hights every year!
Disclaimer. I'm a Lucene/Solr committer and consult on both products
I am somewhat biased because I am a - recent - Solr committer. But I also did try to do a very balanced comparison presentation two years ago: http://www.slideshare.net/arafalov/solr-vs-elasticsearch-cas... (kind of popular, 49k views...).
Solr - still - is more flexible than Elasticsearch by several degrees of magnitude. But Elasticsearch has a better vertical integration story, especially for analytics. And size (it IS small), because it does not ship OOTB with documentation (online), full examples (any?), Admin UI (plugin), rich-text extraction (plugin), data import mechanism (with rivers gone), etc.
If you don't need those, the choice is much more close. And many people do not need those. The problem is that most of the people don't know what they need and don't need when they do the evaluation, so they look at the most surface parameters.
Solr 6 has good startup scripts, (overly) comprehensive examples, REST APIs, well maintained 700 pages manual, etc. Some of these features are a bit harder to discover due to legacy information also being very visible. But it is there.
Elasticsearch has abandoned their search engine origins and embraced logging and analytics. Those that work in NLP and text processing are still using Solr. The edmismax parser is far more flexible and you can easily create your own query parser.
Elasticsearch excels at ease of use and supporting multiple programming languages via various clients. Solr is slowly moving away from XML, but cryptic query parser syntax remains.
Some colleagues went to an Elastic conference and felt there was foremost in a sales pitch than anything.