News for hackers. Stuff that matters.
Re:Major Changes from Solr 4 to Solr 5 by sagivo on Thursday February 19, 2015 @11:49AM (#9075031)
Any reasons to prefer Solr over elastic-search?
Re:Major Changes from Solr 4 to Solr 5 by arafalov on Thursday February 19, 2015 @02:33PM (#9076379)
Solr is a lot more configurable (Search Components, Update Request Processors, configurable Schemaless processing sequence, etc).

Solr includes Admin UI console which is free for production, ES has one that's only free for development.

Solr has contributors from a lot more different companies, so grows into multiple directions at once.

If you want to compare on a technical level, you can see my presentation from the Lucene/Solr Revolution back in November: http://www.slideshare.net/arafalov/solr-vs-elasticsearch-cas...

Solr is completely free. If that's not an issue for you and you are ready to pay, then you should compare Elasticsearch to LucidWorks Fusion, not directly to Solr.

Re:Major Changes from Solr 4 to Solr 5 by diegolo on Friday February 20, 2015 @04:18AM (#9079643)
Re:Major Changes from Solr 4 to Solr 5 by arafalov on Friday February 20, 2015 @10:35AM (#9080810)
Yes, that was me :-)
Re:Major Changes from Solr 4 to Solr 5 by apawloski on Thursday February 19, 2015 @12:45PM (#9075480)
Search-wise? You're ending up at Lucene either way.

Scaling-wise? Distributed Elasticsearch doesn't have a Zookeeper dependency, which is nice. But Solr has more sharding flexibility and partition tolerance.

Like everything else, depends on your needs.

Re:Major Changes from Solr 4 to Solr 5 by craigching on Thursday February 19, 2015 @12:58PM (#9075590)
> partition tolerance

Yes, see [1] and [2] for a comparison between Solr and Elasticsearch. I should mention also that ES are working on the partition tolerance issue as described in [3]. I am currently using 1.4.3 and am wondering if anything was addressed in 1.4 for resiliency.

[1] http://lucidworks.com/blog/call-maybe-solrcloud-jepsen-flaky... [2] https://aphyr.com/posts/317-call-me-maybe-elasticsearch [3] http://www.elasticsearch.org/blog/resiliency-elasticsearch/

Re:Major Changes from Solr 4 to Solr 5 by shironinja on Thursday February 19, 2015 @01:12PM (#9075711)
For your use case set up both and then do some testing.

Speaking for myself I did that and found that SOLR was a lot more performant. I needed a high-traffic solution without a bunch of servers.

I find that ES tries to do too much with all the dashboards and monitoring etc.

SOLR keeps it simple and thereby does not incur the performance penalty.

Also when an ES cluster goes south (cluster health "yellow" or "red") it seemed like a pain to troubleshoot and determine the real reason WHY. SOLR seems more durable and when something needs investigation you get a clear message in the log.

If you are starting something new and just don't know your traffic requirements and are scared of it "going viral" like a hot new mobile game ES may work for you though. The one thing it excels at is adding more ES servers to the cluster quickly. So if you need more servers ASAP and don't care about the cost ES has that covered.

Re:Major Changes from Solr 4 to Solr 5 by lobster_johnson on Thursday February 19, 2015 @02:08PM (#9076150)
Does Solr have the same problem as ES where you can't modify an index mapping after creating it? With ES you have to reindex everything into a new temporary index and then swap the new and old indexes. It's a terrible design, especially considering that ES already has all the original data and should be perfectly capable of doing it itself, incrementally.
Re:Major Changes from Solr 4 to Solr 5 by nemo44x on Thursday February 19, 2015 @07:18PM (#9078132)
Often when you want to reindex you want to reindex a lot of data - quickly. You don't want to use your same hardware, possibly. So what you do if you're in AWS, for instance, is take your data mounts and mount them to an extremely high powered set of instances. Then, reindex with the new mappings. Then, move your mounts back to your smaller instances.

You save money and can do a reindex very quickly.

A basic "reindex" command would be a cool feature though.

Re:Major Changes from Solr 4 to Solr 5 by shironinja on Thursday February 19, 2015 @02:29PM (#9076342)
It is similar in SOLR (and other NoSQL data stores) currently .. at least as far as I am aware. It can be quite intensive especially since ES, SOLR, etc like to use as much memory as they can for fast access. Any non-trivial application should have duplicate servers / instances to soak up the traffic while a change like that is migrated.
Re:Major Changes from Solr 4 to Solr 5 by arafalov on Thursday February 19, 2015 @02:36PM (#9076402)
The primary limitation comes from Lucene, which powers both. With Solr, you could change the definition and reload the core, but you will be getting some weird artifacts for the previously-indexed content.

Neither Solr nor Elasticsearch should be treated as a primary data store, so that's probably why reindex-in-place is not the highest priority.

Re:Major Changes from Solr 4 to Solr 5 by lobster_johnson on Thursday February 19, 2015 @02:44PM (#9076456)
I think treating Solr/ES as a primary data store would be a horrible idea. But the problem is equally annoying if you're using it as an expendable search index.

There is no technical reason why Solr/ES could not do diff-based indexing. ES (I don't know about Solr) admittedly uses a single Lucene index per logical index, so changing a single field mapping involves reindexing the whole index, not just that one mapping.

But if the mappings were properly versioned ES could simply create a new version, index everything (from the original contents), and then swap. Locking the original index should be a non-issue.

Re:Major Changes from Solr 4 to Solr 5 by gizmogwai on Thursday February 19, 2015 @02:42PM (#9076444)
No, they don't. Behind the scene, it's Lucene that is creating a set of inverted indexes. While extremely performant for text search, it is also destructive and partial comparing to the initial dataset. So, there is no way to migrate an index to another one.
Re:Major Changes from Solr 4 to Solr 5 by lobster_johnson on Thursday February 19, 2015 @02:46PM (#9076476)
ES, by default, stores the original document in the nested "_source" document, which could be used to reindex data from scratch.
Re:Major Changes from Solr 4 to Solr 5 by chatman on Thursday February 19, 2015 @12:00PM (#9075110)
Solr is backed by the Apache community while ES is backed by a private entity. Is that a good reason?
Re:Major Changes from Solr 4 to Solr 5 by matthewmacleod on Thursday February 19, 2015 @12:06PM (#9075167)
Not really, no. If ElasticsearchCo were to go belly-up, the technology would almost certainly be backed by someone else.
Re:Major Changes from Solr 4 to Solr 5 by capkutay on Thursday February 19, 2015 @02:02PM (#9076110)
I don't know what you mean when you say backed by the Apache Community, but Elasticsearch is also an open source, apache-licensed project that has a commercial, private counterpart. I think every major open source project has this now (Hadoop has Cloudera/Hortonworks/MapR, Spark has databricks).
Re:Major Changes from Solr 4 to Solr 5 by TallGuyShort on Thursday February 19, 2015 @03:08PM (#9076621)
>> I don't know what you mean when you say backed by the Apache Community

It's a matter of who does the releasing (i.e. curating of patches, responsibility for building community, etc.): Solr is governed by the Apache Software Foundation and associated volunteers, ElasticSearch is governed by the private entity.

IMO (and this is an increasingly rare opinion) the license is the most important piece and they're both under the ASL 2.0.

Re:Major Changes from Solr 4 to Solr 5 by nemothekid on Friday February 20, 2015 @04:13AM (#9079632)
Governing alone - I don't that thats a good reason. There are plenty of Apache projects that are effectively governed by a private entity (Cassandra, Samza, Kafka, and these are all in the "big data" space), that would most likely be as useful as Elasticsearch if their supporting companies disappeared overnight.
Re:Major Changes from Solr 4 to Solr 5 by ecaron on Thursday February 19, 2015 @12:19PM (#9075273)
No. It'd be like preferring memcache over redis. You'll find warriors in both camps, but most people have forgotten there was a debate.