Add more context to IndexReaderFactory.newReader
------------------------------------------------

                 Key: SOLR-3322
                 URL: https://issues.apache.org/jira/browse/SOLR-3322
             Project: Solr
          Issue Type: Improvement
    Affects Versions: 4.0
            Reporter: Andrzej Bialecki 
            Assignee: Andrzej Bialecki 
             Fix For: 4.0


In some situations where a custom IndexReaderFactory is used the amount of 
information passed to the newReader(..) call is too small. E.g. if a factory 
needs to access some external data that depends on schema or even on the 
collection name then it has no way to obtain that context.

We cannot use SolrCoreAware here because this method is called before SolrCore 
is ready.

I propose to simply change the signature and add a SolrCore argument. Even 
though SolrCore is not fully valid at this point, still the most useful 
properties there are valid (schema, descriptor, config, etc...).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to