You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ANKITBHATNAGAR <ab...@vantage.com> on 2010/03/24 21:24:17 UTC
Re: update some index documents after indexing process is done with
DIH
: If you make your EventListener implements SolrCoreAware you can get
: hold of the core on inform. use that to get hold of the
: SolrIndexWriter
Implementing SolrCoreAware I can get hold of the core and easy get hold of A
SolrIndexSearcher and so a reader. But I can't see the way to get hold of
SolrIndexWriter just holding core...
===================================================================
This is how you get
SolrIndexWriter writer = new
SolrIndexWriter("SolrCore.initIndex",getIndexDir(), true, schema,
mainIndexConfig);
Ankit
--
View this message in context: http://old.nabble.com/update-some-index-documents-after-indexing-process-is-done-with-DIH-tp24695947p28020805.html
Sent from the Solr - User mailing list archive at Nabble.com.