Uploaded image for project: 'Zoie'
  1. Zoie
  2. ZOIE-104

proj.zoie.solr.ZoieSolrIndexReaderFactory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:

      Description

      @Override
      public IndexReader newReader(Directory dir, boolean readOnly)
      throws IOException {
      IndexReader reader = null;
      if (_zoieSystem != null) {
      List<ZoieIndexReader<IndexReader>> readerList = _readerList;
      _readerList = _zoieSystem.getIndexReaders();
      if (readerList != null)

      { _zoieSystem.returnIndexReaders(_readerList); }

      reader = new ZoieSolrMultiReader<IndexReader>(_readerList,
      _zoieSystem);
      } else

      { reader = new InitialIndexReader(IndexReader.open(dir, null, readOnly, termInfosIndexDivisor)); }

      return reader;

      }

      when the first new solrSearcher call newReader return the instance of InitialIndexReader

      but the InitialIndexReader doesn't impl the method:

      public IndexCommit getIndexCommit() throws IOException

      so when I call the replication will throw the Exception:

      java.lang.UnsupportedOperationException: This reader does not support this method.
      at org.apache.lucene.index.IndexReader.getIndexCommit(IndexReader.java:1232)

        Attachments

          Activity

            People

            • Assignee:
              jwang John Wang
              Reporter:
              genuine yuzhenyuan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: