English 中文(简体)
How do I make Umbraco 5 ignore the bundled (with Examine) Lucene.NET
原标题:

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





相关问题
What form is DLL & what makes it processor dependent

I know DLL contains one or more exported functions that are compiled, linked, and stored separately.. My question is about not about how to create it.. but it is all about in what form it is stored.. ...

Create Visual Fox Pro DBF with activex

any one knows if there is a activex dll that can create VFP DBF files? I mean im writing app with 1C:Enterprise 8.2 language, and i need to export some datas into VFP DBF. And i can only use activex ...

Dynamically loading a dll in C#

I have a window to use for editing. The editor should load a dll (which I have full control of) in response to the user s selection to know how to display the information visually. (They re dll s, as ...

How do I link to a DLL from javascript in XULRunner?

I have a dll (that I didn t write) and I would like to use it in an XULRunner application. I know nearly nothing about this, so bear with me. Apparently I can use XPCOM to load the dll and then call ...

Is there a minimal php5ts.dll?

I ve completed my web app and am using mongoose to serve the php pages. The whole app & mongoose is less then 2MB. The php5ts.dll is almost 5MB so that really adds bloat. Also, my app is very ...

DllGetVersion not giving expected results under Windows 7

I have some code that attempts to test whether my application is running with the themes set. Here s the C# code: internal class NativeMethods { [DllImport("comctl32", CharSet = CharSet.Auto, ...

How to restrict access to my DLL

Is possible to restrict access to my .NET DLL library? My application has more EXE assemblies and I need share some code, but I don t want someone else could use that.

Creating a thread in DllMain?

It seems that when a thread is created from within DllMain upon DLL_PROCESS_ATTACH it won t begin until all dll s have been loaded. Since I need to make sure the thread runs before I continue, I get a ...

热门标签