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 Marc Sturlese <ma...@gmail.com> on 2009/07/20 15:47:00 UTC

method inform of SolrCoreAware callled 2 times

Hey there,
I have implemented a custom component wich extends SearchComponent and
implements SolrCoreAware.
I have decalred it in solrconfig.xml as:
 <searchComponent name="mycomp" class="solr.MyCustomComponent" >

And added it in my Searchhandler as:
     <arr name="last-components">
       <str>mycomp</str>
     </arr>

I am using multicore with two cores.
I have noticed (doing some logging) that the method "inform" (the ones that
implements SolrCoreAware) in being called 2 times per each core when I start
my solr instance. As I understood SolrCoreAware "inform" method should be
just called once per core, am I right or it's normal that is is called 2
times per core?



-- 
View this message in context: http://www.nabble.com/method-inform-of-SolrCoreAware-callled-2-times-tp24570221p24570221.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: method inform of SolrCoreAware callled 2 times

Posted by Marc Sturlese <ma...@gmail.com>.
I am with a nightly from middle june

Noble Paul നോബിള്‍  नोब्ळ्-2 wrote:
> 
> it is not normal to get the inform() called twice for a single object.
> which version of solr are you using?
> 
> On Mon, Jul 20, 2009 at 7:17 PM, Marc Sturlese<ma...@gmail.com>
> wrote:
>>
>> Hey there,
>> I have implemented a custom component wich extends SearchComponent and
>> implements SolrCoreAware.
>> I have decalred it in solrconfig.xml as:
>>  <searchComponent name="mycomp" class="solr.MyCustomComponent" >
>>
>> And added it in my Searchhandler as:
>>     <arr name="last-components">
>>       <str>mycomp</str>
>>     </arr>
>>
>> I am using multicore with two cores.
>> I have noticed (doing some logging) that the method "inform" (the ones
>> that
>> implements SolrCoreAware) in being called 2 times per each core when I
>> start
>> my solr instance. As I understood SolrCoreAware "inform" method should be
>> just called once per core, am I right or it's normal that is is called 2
>> times per core?
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/method-inform-of-SolrCoreAware-callled-2-times-tp24570221p24570221.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> -----------------------------------------------------
> Noble Paul | Principal Engineer| AOL | http://aol.com
> 
> 

-- 
View this message in context: http://www.nabble.com/method-inform-of-SolrCoreAware-callled-2-times-tp24570221p24584667.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: method inform of SolrCoreAware callled 2 times

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com>.
it is not normal to get the inform() called twice for a single object.
which version of solr are you using?

On Mon, Jul 20, 2009 at 7:17 PM, Marc Sturlese<ma...@gmail.com> wrote:
>
> Hey there,
> I have implemented a custom component wich extends SearchComponent and
> implements SolrCoreAware.
> I have decalred it in solrconfig.xml as:
>  <searchComponent name="mycomp" class="solr.MyCustomComponent" >
>
> And added it in my Searchhandler as:
>     <arr name="last-components">
>       <str>mycomp</str>
>     </arr>
>
> I am using multicore with two cores.
> I have noticed (doing some logging) that the method "inform" (the ones that
> implements SolrCoreAware) in being called 2 times per each core when I start
> my solr instance. As I understood SolrCoreAware "inform" method should be
> just called once per core, am I right or it's normal that is is called 2
> times per core?
>
>
>
> --
> View this message in context: http://www.nabble.com/method-inform-of-SolrCoreAware-callled-2-times-tp24570221p24570221.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com