Lucene.net在ASP.NET核心 [英] Lucene.net in ASP.NET core

查看:104
本文介绍了Lucene.net在ASP.NET核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,每个人

我在asp.net core 2.2中关于lucene.net的一个问题。

如何在asp.net核心中使用lucene,请建议我,如果可能的话。

谢谢。

[最佳方式]



我有什么尝试过:



我在网上搜索了很长时间,但找不到合适的文章。

Hi,every body
I'm one question about lucene.net in asp.net core 2.2.
How to using lucene in asp.net core,Please advice me, if possible.
Thanks.
[BEST REGARDS]

What I have tried:

I'm searching in web for a long time,but can not find any proper article.

推荐答案

这里 [ ^ ]。



请参阅有用链接菜单项?点击它。在那里,你会发现如何开始使用Lucene.Net。



现在,Lucene.net最大的问题之一就是缺少文档。您确定要在生产应用程序中使用未正确记录的产品吗?我不会。



现在,对于.NET Core,文档更少。从我所看到的,它几乎在博客文章中完成。您可以尝试使用使用Lucene.Net 4.8进行搜索(第1部分) - 基本实现 [ ^ ]


Packt有 Lucene 4 Cookbook - PDF电子书|现在只需
Packt has Lucene 4 Cookbook - PDF eBook | Now just


5 [ ^ ]并且它正在出售。我觉得这很有帮助。虽然它是关于Java版本的,但Lucene.NET几乎是C#的端口,因此很容易使用代码中的概念。



只是一个警告,Lucene.NET 4.8是.NET Standard 2.0,可以很容易地在.NET Core应用程序中使用,但是API不同于3.0.3版本,它不是.NET Standard,只有.NET Framework 4.6。



但是,您可以在.NET Core应用程序中包含.NET 4.6 NuGet包,在大多数情况下,它们可以正常工作。我没有遇到任何问题,所以你可以忽略这些警告。



请记住,Lucene.NET只是一个提供反向索引和搜索功能的库,但是您必须实现使用它的应用程序和基础架构。



有许多替代方案可以利用Lucene或Lucene.NET并提供更完整的解决方案。 ElasticSearch和RavenDb只是一对。此外,许多CMS框架将基于Lucene的索引和搜索功能作为模块。想到了Orchard和WordPress。
5[^] and it is on sale. I found this helpful. While it is about the Java version, Lucene.NET is an almost exact port to C#, so it is easy to use the concepts in you code.

Just a warning, Lucene.NET 4.8 is .NET Standard 2.0 and can be easily used in a .NET Core application, but the API is different from the 3.0.3 version, which is not .NET Standard, only .NET Framework 4.6.

However, you can include .NET 4.6 NuGet packages in a .NET Core app and in most cases, they will work fine. I have not run into any issues, so you can ignore the warnings.

Just remember, Lucene.NET is just a library to provide Inverted Indexes and Search functionality, but you have to implement the app and infrastructure that uses it.

There are a number of alternatives that leverage Lucene or Lucene.NET and provide a more complete solution. ElasticSearch and RavenDb are just a couple. Also, many CMS frameworks will include Lucene based Indexing and Search capabilities as modules. Orchard and WordPress come to mind for this.


这篇关于Lucene.net在ASP.NET核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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