Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-368

Similarity.Net doesn't compile with Lucene trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      If you compile Similarity.Net using Lucene.net 2.9.2 (or also from trunk) you get the following compile error:

      C:\Projects\lucene.net\Lucene.Net_2_9_2\contrib\Similarity.Net\Similarity.Net\Similar\MoreLikeThis.cs(500,57): error CS0266: Cannot implicitly convert type 'System.Collections.Generic.ICollection<string>' to 'System.Collections.ICollection'. An explicit conversion exists (are you missing a cast?)
      C:\Projects\lucene.net\Lucene.Net_2_9_2\contrib\Similarity.Net\Similarity.Net\Similar\MoreLikeThis.cs(521,57): error CS0266: Cannot implicitly convert type 'System.Collections.Generic.ICollection<string>' to 'System.Collections.ICollection'. An explicit conversion exists (are you missing a cast?)

      This is caused by IndexReader.GetFieldNames returns a ICollection<string> rather then just a ICollection as before.

      Attachments

        1. similarity-net-cantcompile.patch
          1 kB
          Simone Chiaretta

        Activity

          People

            digydigy Digy
            simonech Simone Chiaretta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: