[ https://issues.apache.org/jira/browse/SOLR-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man updated SOLR-1802: --------------------------- Description: When an IndexReaderFactory returns an instance of MultiReader, various places in Solr try to call reader.directory() and reader.getVersion, which results an UnsupportedOperationException. was: When an IndexReaderFactory returns an instance of MultiReader, Solr tries to call reader.directory() and reader.getVersion, which results an UnsupportedOperationException. Custom IndexReaderFactory implementations that return MultiReader instances are common, and I don't there there are documentations that discourage this. Issue Type: Improvement (was: Bug) Summary: Make Solr work with IndexReaderFactory implementations that return MultiReader (was: Solr is not friend to IndexReaderFactory implementations that return MultiReader) editing issue summary to reflect that this is an improvement, not a bug. It was noted when IndexReaderFactory was added that using custom factories was incompatible with a lot of Solr features precisely because of the assumption about reader.directory()... CHANGES.txt when the API was introduced... {noformat} 59. SOLR-243: Add configurable IndexReaderFactory so that alternate IndexReader implementations can be specified via solrconfig.xml. Note that using a custom IndexReader may be incompatible with ReplicationHandler (see comments in SOLR-1366). This should be treated as an experimental feature. (Andrzej Bialecki, hossman, Mark Miller, John Wang) {noformat} example solrconfig.xml (the only place the feature is advertised)... {code} <!-- Use the following format to specify a custom IndexReaderFactory - allows for alternate IndexReader implementations. ** Experimental Feature ** Please note - Using a custom IndexReaderFactory may prevent certain other features from working. The API to IndexReaderFactory may change without warning or may even be removed from future releases if the problems cannot be resolved. ** Features that may not work with custom IndexReaderFactory ** The ReplicationHandler assumes a disk-resident index. Using a custom IndexReader implementation may cause incompatibility with ReplicationHandler and may cause replication to not work correctly. See SOLR-1366 for details. <indexReaderFactory name="IndexReaderFactory" class="package.class"> Parameters as required by the implementation </indexReaderFactory > {code} > Make Solr work with IndexReaderFactory implementations that return MultiReader > ------------------------------------------------------------------------------ > > Key: SOLR-1802 > URL: https://issues.apache.org/jira/browse/SOLR-1802 > Project: Solr > Issue Type: Improvement > Components: search > Affects Versions: 1.4 > Reporter: John Wang > > When an IndexReaderFactory returns an instance of MultiReader, various places > in Solr try to call reader.directory() and reader.getVersion, which results > an UnsupportedOperationException. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.