We're updating the issue view to help you get more done. 

proj.zoie.solr.ZoieSolrIndexReaderFactory

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)

Environment

None

Status

Assignee

John Wang

Reporter

yuzhenyuan

Labels

Fix versions

Priority

Major