Merge Dlls

22 April 2008 by Ismail

I am in between jobs at the moment and was messing around with the umbraco Utilities lucene search. The umbraco internal search and umbraco utilites search uses lucene 1.9.  Lucene 2.0 has some extra new goodies. I found on old dotlucene site a class to build similarity query for lucene.net 20 (lucene is at 2.4 and that has all similiarity stuff already).  With new class from dotlucene you create similiarity query like

 

Query q = Lucene.Search.Similar.SimilarityQueries.FormSimilarQuery(body, new StandardAnalyzer(), "contents", null);

 

and that will get you all the documents lucene thinks are like your document. The issue i had was i could'nt just copy over lucene.net 20 dll becuase the indexing add term signature has changed.  So how can I use the new lucene 20 stuff without breaking existing stuff?  ILMerge to the rescue with NuGenUnify.  I took Ryans search tools stuff he already has lucene 20 search code source already in his code then using NuGenUnify I created new merged dll with its own assembly name.  I can now use lucene 20 in my code in isolation.  Still need to update indexing code becuase of new add term signature but hopefully fingers crossed it should all work!


0 comment(s) for “Merge Dlls”

    Leave a comment


    (not shown)


    (optional - remember http://)


    Stop those damn spammers