简体   繁体   English

在 Asp.net 中使用 lucene.net 的最佳实践

[英]Best practice of using lucene.net within Asp.net

Would like to integrate lucene.net 4.8 within a Asp.net website with NRT (Near Realtime Search) capabilities.想要将 lucene.net 4.8 集成到具有 NRT(近实时搜索)功能的 Asp.net 网站中。

Don't know exactly how I have to use reader and writer classes (single or multi instances and so on) like the Searchermanager class for example.不知道我必须如何使用读取器和写入器类(单实例或多实例等),例如 Searchermanager 类。

So is there any Best practice usage pattern here when updating the Index regulary?那么在定期更新索引时是否有任何最佳实践使用模式?

As a side note...I would like to keep my index in sync with my relational database as accurate as possible.作为旁注......我希望尽可能准确地保持我的索引与我的关系数据库同步。

Cannot say, that I know the best practices, but you can explore some of my findings: https://github.com/mihasic/LuceneSearch不能说我知道最佳实践,但您可以探索我的一些发现: https : //github.com/mihasic/LuceneSearch

Basically, there's a facade Index to explore, it which takes care of most of the operations.基本上,有一个外观Index需要探索,它负责大部分操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM