我如何使Umbraco 5忽略捆绑(与检查)Lucene.NET [英] How do I make Umbraco 5 ignore the bundled (with Examine) Lucene.NET

查看:118
本文介绍了我如何使Umbraco 5忽略捆绑(与检查)Lucene.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Umbraco 5上使用了从未使用过的Lucene.NET版本,但意识到它与Umbraco 5随附的与Examine捆绑在一起的版本相冲突(请参阅

Lucene.NET的新版本是2.9.4.1.

删除旧的捆绑式Lucene.NET库会导致​​错误.

解决方案

您使它起作用了吗?

我过去曾尝试升级检查,并且遇到了相同的错误,导致我放弃了最后,重新安装适当的默认Umbraco.我相信您不能仅仅升级库,因为它已与UmbracoExamine紧密结合以使其与Umbraco一起使用.如果您确实升级了检查DLL,则会收到错误消息.

现在,可以通过启用缓存并使用umbraco.uQuery命名空间来快速执行大多数搜索.实际上,我们的目标是寻求Redis等其他搜索服务提供商为Umbraco建立快速有效的搜索层.这种非关系型/NoSQL数据库/密钥对值对于这种搜索非常有效,并且自然可以完成数据库索引器Examine必须通过代码执行的操作.对于Examine,没有明显原因而停止索引的情况并不少见.对于商业项目而言,这不是一个好情况,因此我建议您探索替代方案.

摘要:重新安装或自行烘焙

I'm using a never version of Lucene.NET with Umbraco 5, but realized that it collided with the version bundled with Examine that is included with Umbraco 5 (See C#: Could not load types from assembly).

Rather than just removing Examine and the outdated Lucene.NET library from the \App_Plugins directory, I'm interested in a happy coexistence, where Examine uses my new version of Lucene.NET.

I've tried adding this to web.config, but the outdated Lucene.NET library was still used:

<dependentAssembly>
    <assemblyIdentity name="Lucene.Net" publicKeyToken="85089178b9ac3181" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-2.9.4.1" newVersion="2.9.4.1" />
</dependentAssembly>

The new version of Lucene.NET is 2.9.4.1.

Removing the old bundled Lucene.NET library causes an error.

解决方案

Did you get this to work?

I've tried to upgrade Examine in the past and encountered the same errors, causing me to give up in the end and reinstall the appropriate default Umbraco ones. I believe that you cannot just upgrade the library because it is tightly coupled to UmbracoExamine to get it working with Umbraco. If you do upgrade the Examine DLL's, you'll get errors.

Most of the searching can now be performed quickly by enabling the cache, and using the umbraco.uQuery namespace. We're actually aiming to look to other search providers such as Redis to make a fast, effective search layer for Umbraco. This kind of non-relational / NoSQL database / key-pair values are highly effective for searches like this, and do naturally what the database indexer Examine has to do through code. It is not uncommon for Examine to just stop indexing for no apparent reason. This is not a good situation to have on commercial projects, so I would suggest exploring alternatives.

Summary: reinstall or bake-your-own

这篇关于我如何使Umbraco 5忽略捆绑(与检查)Lucene.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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