Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3555

Lucene DirectoryReader can't find *.frq files created by solr

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 4.0-ALPHA
    • None
    • None
    • None

    Description

      Create index with Solr4

      In index directory have such files:
      _0_Lucene40_0.frq
      _0_Lucene40_0.prx
      _0_Lucene40_0.tim
      _0_Lucene40_0.tip

      When try to open index by Lucene Directory reader got:
      java.io.FileNotFoundException: /opt/solr4/irotor/data/docs/index/_0_Lucene40.frq (No such file)

      File idxLocation = new File('path to index');
      DirectoryFactory df = new StandardDirectoryFactory();
      DirectoryReader.open(df.get(idxLocation.getAbsolutePath(), "native"))

      Exception generated in this method:
      org.apache.lucene.codecs.lucene40.Lucene40PostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, String segmentSuffix);

      freqIn = dir.openInput(IndexFileNames.segmentFileName(segmentInfo.name, segmentSuffix, Lucene40PostingsFormat.FREQ_EXTENSION), ioContext);

      When try to open unexisting _0_Lucene40.frq instead of _0_Lucene40_0.frq

      Attachments

        Activity

          People

            Unassigned Unassigned
            sharky Nik V. Babichev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: