Re: update some index documents after indexing process is done with DIH

2010-03-24 Thread ANKITBHATNAGAR
: 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

Re: update some index documents after indexing process is done with DIH

2009-08-07 Thread Chris Hostetter
: What is confusing me now is that I have to implement my logic in you're certianly in a fuzzy grey area here ... none of this stuff was designed for the kind of thing you're doing. : But in processCommit, having access to the core I can get the IndexReader : but I still don't know how to get t

Re: update some index documents after indexing process is done with DIH

2009-07-31 Thread Marc Sturlese
: 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

Re: update some index documents after indexing process is done with DIH

2009-07-30 Thread Marc Sturlese
Jul 2009 10:14:16 +0530 > : From: > : > =?UTF-8?B?Tm9ibGUgUGF1bCDgtKjgtYvgtKzgtL/gtLPgtY3igI0gIOCkqOCli+CkrOCljeCk > : s+CljQ==?= > : Reply-To: solr-user@lucene.apache.org, noble.p...@gmail.com > : To: solr-user@lucene.apache.org > : Subject: Re: update some index doc

Re: update some index documents after indexing process is done with DIH

2009-07-29 Thread Chris Hostetter
lr-user@lucene.apache.org : Subject: 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 : : On Wed, Jul 29, 2009 at 9:20 PM

Re: update some index documents after indexing process is done with DIH

2009-07-29 Thread Noble Paul നോബിള്‍ नोब्ळ्
If you make your EventListener implements SolrCoreAware you can get hold of the core on inform. use that to get hold of the SolrIndexWriter On Wed, Jul 29, 2009 at 9:20 PM, Marc Sturlese wrote: > > From the newSearcher(..) of a CustomEventListener which extends of > AbstractSolrEventListener  can

Re: update some index documents after indexing process is done with DIH

2009-07-29 Thread Marc Sturlese
>From the newSearcher(..) of a CustomEventListener which extends of AbstractSolrEventListener can access to SolrIndexSearcher and all core properties but can't get a SolrIndexWriter. Do you now how can I get from there a SolrIndexWriter? This way I would be able to modify the documents (I need to

Re: update some index documents after indexing process is done with DIH

2009-07-29 Thread Noble Paul നോബിള്‍ नोब्ळ्
On Tue, Jul 28, 2009 at 5:17 PM, Marc Sturlese wrote: > > That really sounds the best way to reach my goal. How could I invoque a > listener from the newSearcher?Would be something like: >     >       >         solr 0 name="rows">10 >         rocks 0 name="rows">10 >        static newSearcher w

Re: update some index documents after indexing process is done with DIH

2009-07-28 Thread Marc Sturlese
That really sounds the best way to reach my goal. How could I invoque a listener from the newSearcher?Would be something like: solr 0 10 rocks 0 10 static newSearcher warming query from solrconfig.xml And MyCustomListener would be the class

Re: update some index documents after indexing process is done with DIH

2009-07-28 Thread Noble Paul നോബിള്‍ नोब्ळ्
when a core is reloaded the event fired is firstSearcher. newSearcher is fired when a commit happens On Tue, Jul 28, 2009 at 4:19 PM, Marc Sturlese wrote: > > Ok, but if I handle it in a newSearcher listener it will be executed every > time I reload a core, isn't it? The thing is that I want to u

Re: update some index documents after indexing process is done with DIH

2009-07-28 Thread Marc Sturlese
Ok, but if I handle it in a newSearcher listener it will be executed every time I reload a core, isn't it? The thing is that I want to use an IndexReader to load in a HashMap some doc fields of the index and depending of the values of some field docs modify other docs. Its very memory consuming (I

Re: update some index documents after indexing process is done with DIH

2009-07-28 Thread Noble Paul നോബിള്‍ नोब्ळ्
It is best handled as a 'newSearcher' listener in solrconfig.xml. onImportEnd is invoked before committing On Tue, Jul 28, 2009 at 3:13 PM, Marc Sturlese wrote: > > Hey there, > I would like to be able to do something like: After the indexing process is > done with DIH I would like to open an inde