Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Armitage 510 posts 2081 karma points
    May 23, 2019 @ 06:37
    David Armitage
    0

    Examine Issues | exists in both 'Lucene.Net, Version=2.9.4.1 and 3.0.3.0

    Hi Guys,

    I am just doing some examine searching in one of my projects for Umbraco Version 7.14.0 assembly: 1.0.7009.26199

    There seems to be some odd things happening when using code that has worked in the past with slightly older version of Umbraco 7.

    • which I actually got from the searching and indexing Umbraco course.

    It all boils down to Visual Studios complaining that certain objects exists in 'Lucene.Net, Version=2.9.4.1 and 3.0.3.0.

    Does anyone know why two versions of Lucene and used in Umbraco and if there is any way to fix this.

    So for example lines of code like this are presenting errors...

    var i = new MultiIndexSearcher(directories, new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_29));
    
    var field = new Field("__Sort_" + dateField,
                   reviewDate.ToString("yyyyMMddHHmmss", CultureInfo.InvariantCulture),
                   Field.Store.YES, Field.Index.NOT_ANALYZED);
    

    Apparantly...

    StandardAnalyzer exists in both versions of Lucene and

    Field exists in both versions of Lucene

    Any ideas?

    Thanks in Advanced.

    David

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    May 23, 2019 @ 08:03
    Ismail Mayat
    0

    You should only have 2.9.4.1 if you are running v7. 3.0.3 is in v8

    Double check your bin file do you have 3.0.3 knocking around? If so then try and find it in vs project references and if using nuget have a look in package config. It may also have been installed via nuget when you installed something else.

  • Jo Kendal 32 posts 194 karma points
    May 23, 2019 @ 15:44
    Jo Kendal
    0

    Hi Ismail

    Do you have any notes on creating indexes for PDFs in V8, I have used your package many times in V7. V8 appears a completely different animal.

Please Sign in or register to post replies

Write your reply to:

Draft