基于NHibernate的全文搜索
我想通过 [Fluent] 基于 NHibernate 的数据访问将全文搜索集成到 .NET 应用程序中。到目前为止,Lucene.NET 和 NHibernate Search 组合似乎是最合理的选择。然而,有几个项目构建在 Lucene 之上,据说可以减轻 Lucene 的复杂性并添加新功能(例如 Solr 或 ElasticSearch)以及围绕这些库的一些 .NET 包装器。那么,我的项目的[最佳]选择是什么?
I want to integrate full-text search into a .NET application with [Fluent] NHibernate-based data access. So far Lucene.NET and NHibernate Search combination appears to be the most reasonable option there. However, there are several projects built on top of Lucene which are said to mitigate Lucene complexity and add new features (e.g. Solr or ElasticSearch) as well as some .NET wrappers around those libraries. So, what are the [best] options for my project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您已经有了 nhibernate 数据访问权限,您应该使用 nhibernate search,因为它集成得非常好,而且学习曲线也不太陡峭。
Solr 和 Elasticsearch 更加独立于系统(例如 Restful api),但需要更多的管道工作。
您在这里有很多资源:https://stackoverflow.com/questions/tagged/nhibernate.search
If you already have a nhibernate data access, you should go with nhibernate search, as it integrates very nicely, and learning curve is not too steep.
Solr and Elasticsearch are more system independant (restful api for example), but will need more plumbing work.
And you have a lot of resource here : https://stackoverflow.com/questions/tagged/nhibernate.search
由于您使用的是 .NET,Solr 和 Hibernate Search 并不能真正提供帮助,并且可能需要您购买另一台专用于搜索的服务器。我不熟悉 NHibernate Search 等,但随着 .NET 移植的发展,它很可能远远落后于真正的 Java 事物。
如果您可以更改数据访问层,请查看 RavenDB。它是在 Lucene 之上用 C#/.NET 编写的,因此您可以获得一个快速的无模式文档数据库和一个打包成一体的全文搜索引擎。
Since you're on .NET, Solr and Hibernate Search can't really be of help and would probably require you to get another server dedicated for search only. I'm not familiar with NHibernate Search et al, but as .NET ports go, its most likely quite behind the real Java thing.
If its feasible for you to change your data-access layer, checkout RavenDB. It is written in C#/.NET on top of Lucene, so you get a fast schema-less document DB and a full-text search engine packed as one.