Lucene.Net
  1. Lucene.Net
  2. LUCENENET-53

SegmentsInfos.GetCurrentSegmentGeneration works incorrectly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      SegmentsInfos.GetCurrentSegmentGeneration uses StartWith for full file path instead of file name.
      So Lucene.Net.Index.IndexReader.IndexExists(dirPath) always returns false. GetCurrentSegmentGeneration is used in some other functions. So some other hidden problems are possible.

        Activity

        Anton K. created issue -
        Hide
        Anton K. added a comment -

        Here is a patch

        Show
        Anton K. added a comment - Here is a patch
        Anton K. made changes -
        Field Original Value New Value
        Attachment SegmentsInfos-2.1.0-GetCurrentSegmentGeneration.patch [ 12362624 ]
        George Aroush made changes -
        Assignee George Aroush [ georgearoush ]
        Hide
        George Aroush added a comment -

        Patch applied for 2.1 build 2

        Show
        George Aroush added a comment - Patch applied for 2.1 build 2
        George Aroush made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        George Aroush made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            George Aroush
            Reporter:
            Anton K.
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development