lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wang (JIRA)" <>
Subject [jira] Commented: (SOLR-243) Create a hook to allow custom code to create custom IndexReaders
Date Sun, 09 Mar 2008 03:57:46 GMT


John Wang commented on SOLR-243:

What is the plan for this patch?
We have a couple of votes for it.



> Create a hook to allow custom code to create custom IndexReaders
> ----------------------------------------------------------------
>                 Key: SOLR-243
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.3
>         Environment: Solr core
>            Reporter: John Wang
>         Attachments: indexReaderFactory.patch, indexReaderFactory.patch, indexReaderFactory.patch
> I have a customized IndexReader and I want to write a Solr plugin to use my derived IndexReader
implementation. Currently IndexReader instantiation is hard coded to be: 
> It would be really useful if this is done thru a plugable factory that can be configured,
e.g. IndexReaderFactory
> interface IndexReaderFactory{
>      IndexReader newReader(String name,String path);
> }
> the default implementation would just return:
> And in the newSearcher and getSearcher methods in SolrCore class can call the current
factory implementation to get the IndexReader instance and then build the SolrIndexSearcher
by passing in the reader.
> It would be really nice to add this improvement soon (This seems to be a trivial addition)
as our project really depends on this.
> Thanks
> -John

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message