Hi Yonik:

   Thanks for the info!

   This solves my problem, but not elegantly.

    I have a custome implementation where I derived from the
IndexReader class to store some custome data. Now I am trying to write
a Solr plugin for my search implementation but I want to be able to
use my IndexReader implementation.

   Is there a way to overwrite the IndexReader instantiation? e..g
IndexReader newReader() etc.

Thanks

-John

On 5/18/07, Yonik Seeley <[EMAIL PROTECTED]> wrote:
On 5/17/07, John Wang <[EMAIL PROTECTED]> wrote:
>    Is there a way to hook in loading and initialization of the index while
> writing a solr plugin?

Do you mean a hook to do something when an IndexReader/Searcher is
first opened on an index?  If so, see newSearcher/firstSearcher hooks
in solrconfig.xml

-Yonik

Reply via email to