为什么NoSQL对话中不包括Lucene/Solr之类的文档存储? [英] Why are document stores like Lucene / Solr not included in NoSQL conversations?

查看:50
本文介绍了为什么NoSQL对话中不包括Lucene/Solr之类的文档存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我们所有人都遇到了无SQL解决方案的大肆宣传. MongoDB,CouchDB,BigTable,Cassandra等已被列为无SQL选项.这是一个示例:

All of us have come across the recent hype of no-SQL solutions lately. MongoDB, CouchDB, BigTable, Cassandra, and others have been listed as no-SQL options. Here's an example:

http://architects.dzone.com/articles/什么是nosql-store-should-我使用

但是,三年前,我和一位同事正在使用Lucene.NET来满足no-SQL的描述.我们不仅仅将其用于用户输入的搜索查询;我们使用它来使一些重新索引的RDBMS表数据非常有效.我们实现了自己的.NET等同于Solr的服务来管理这些索引并使它们可调用.当我离开公司时,团队改用了Solr. (对于那些不知道的人,Solr是一个Web服务,它通过REST可调用的查询和索引转储来包装Lucene.)

However, three years ago a co-worker and I were using Lucene.NET as what seem to fit the description of no-SQL. We did not use it just for user-inputted search queries; we used it to make a few reindexed RDBMS table data extremely performant. We implemented our own .NET sort-of-equivalent-to-Solr service to manage these indexes and make them callable. When I left the company, the team switched to Solr itself. (For those not in the know, Solr is a web service that wraps Lucene with REST-callable queries and index dumps.)

我不明白的是,为什么在无SQL解决方案选项的典型列表中不包括Solr?我在这里想念什么吗?我认为,出于技术原因,Solr无法与CouchDB等同类产品相提并论,事实上,我知道CouchDB使用Lucene作为其数据存储库(是吗?),但是什么使Solr不符合条件?

What I don't understand is, why is Solr not counted in the typical lists of no-SQL solution options? Am I missing something here? I assume that there are technical reasons why Solr is not comparable to the likes of CouchDB, etc., and in fact I understand that CouchDB uses Lucene as its data store (yes?), but what disqualifies Solr?

我不是在问Solr的狂热爱好者或其他任何人,我只是不明白为什么Solr之类的内容不符合no-SQL的定义,如果Solr从技术上来说确实符合该定义,那该怎么办?它有可能使人po声吗?我之所以这样问,是因为我很难确定我是否应该继续将基于Lucene的解决方案(例如Solr)用于我构建的解决方案,或者我是否真的应该使用其他选项进行更多的研究.

I'm not asking as some kind of Solr fanboy or anything, I just don't understand why Solr and the like don't fit the definition of no-SQL, and if Solr technically does fit the definition then what about it likely makes people pooh-pooh it? I'm asking because I'm having difficulty determining whether I should continue using Lucene-based solutions (like Solr) for solutions that I build or if I should really do more research with these other options.

推荐答案

我曾经听过作家Ursula K. LeGuin关于小说写作的采访.面试官问她有关从事不同写作类型的作者的问题.是什么使一个作家成为浪漫作家,另一个成为神秘作家,又成为科幻小说作家? LeGuin的回答是:

I once listened to an interview with author Ursula K. LeGuin about fiction writing. The interviewer asked her about authors who work in different genre of writing. What makes one author a romance writer, and another a mystery writer, and another a science fiction writer? LeGuin responded by explaining:

体裁与营销有关,而不与内容有关.

Genre is about marketing, not about content.

这是一个令人大开眼界的声明.

It was an eye-opening statement.

我认为技术解决方案也是如此. NoSQL运动引起了人们的注意,因为它现在已经充满了营销能量.诸如Hadoop,CouchDB,MongoDB之类的NoSQL数据存储都拥有商业支持,将其解决方案推向新的,创新的和令人兴奋的状态,从而可以发展业务. "NoSQL"一词是一个营销品牌,可帮助他们解释其价值.

I think the same applies to technology solutions. The NoSQL movement is attracting attention because it's full of marketing energy right now. NoSQL data stores like Hadoop, CouchDB, MongoDB, have commercial ventures backing them, pushing their solutions as new and innovative and exciting so they can grow their business. The term "NoSQL" is a marketing brand that helps them to explain their value.

您是正确的,Lucene/Solr在技术上与NoSQL文档存储非常相似:它是非规范化的文件袋(它们的术语),其字段在文档集合中不一定是一致的.它以复杂的方式编制索引,使您可以跨所有字段或按特定字段进行搜索.

You're right that Lucene/Solr is technically very similar to a NoSQL document store: it's a denormalized bag of documents (their term) with fields that aren't necessarily consistent across the collection of documents. It's indexed in a sophisticated way to allow you to search across all fields or by specific fields.

但这不是Lucene用来解释其价值的体裁.由于由Apache基金会管理,因此他们没有共同的任务来发展市场和业务.他们乐于专注于全文搜索的用例,即使该技术可以以其他方式使用.他们遵循的是软件成功的宗旨:做一件事,做得好.

But that's not the genre Lucene uses to explain its value. They don't have the same mission to grow a market and a business, since they're managed by the Apache Foundation. They're happy to focus on the use case of fulltext search, even though the technology could be used in other ways. They're following a tenet of software success: do one thing, and do it well.

这篇关于为什么NoSQL对话中不包括Lucene/Solr之类的文档存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆