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 Alexandre Drouin <al...@orckestra.com> on 2016/07/29 14:45:30 UTC
Where should the listeners be defined in solrconfig.xml (Solr 6.0.1)
Hello,
I was wondering where I should put the <listener> configuration. I can see from the sample solrconfig.xml that they are defined under the <updateHandler> and <query> elements.
The Schema API for listeners does not specify a parent of type updateHandler or query so I wanted to know if I also define them directly under the root of the xml document (config)?
Alexandre Drouin
RE: Where should the listeners be defined in solrconfig.xml (Solr
6.0.1)
Posted by Alexandre Drouin <al...@orckestra.com>.
That's good to know thanks!
I should have thought to check the java code before asking.
Alexandre Drouin
-----Original Message-----
From: Mikhail Khludnev [mailto:mkhl@apache.org]
Sent: August 3, 2016 10:52 AM
To: solr-user <so...@lucene.apache.org>
Subject: Re: Where should the listeners be defined in solrconfig.xml (Solr 6.0.1)
Importance: High
As far as I remember the code it captures <listener> everywhere
https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/core/SolrConfig.java#L331
Double slash "//listener" means "everywhere".
On Wed, Aug 3, 2016 at 4:38 PM, Alexandre Drouin < alexandre.drouin@orckestra.com> wrote:
> Does anyone knows where the listener should be defined in solrconfig.xml?
>
>
> Alexandre Drouin
>
>
> -----Original Message-----
> From: Alexandre Drouin [mailto:alexandre.drouin@orckestra.com]
> Sent: July 29, 2016 10:46 AM
> To: solr-user@lucene.apache.org
> Subject: Where should the listeners be defined in solrconfig.xml (Solr
> 6.0.1)
> Importance: High
>
> Hello,
>
> I was wondering where I should put the <listener> configuration. I
> can see from the sample solrconfig.xml that they are defined under the
> <updateHandler> and <query> elements.
> The Schema API for listeners does not specify a parent of type
> updateHandler or query so I wanted to know if I also define them
> directly under the root of the xml document (config)?
>
> Alexandre Drouin
>
>
--
Sincerely yours
Mikhail Khludnev
Re: Where should the listeners be defined in solrconfig.xml (Solr 6.0.1)
Posted by Mikhail Khludnev <mk...@apache.org>.
As far as I remember the code it captures <listener> everywhere
https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/core/SolrConfig.java#L331
Double slash "//listener" means "everywhere".
On Wed, Aug 3, 2016 at 4:38 PM, Alexandre Drouin <
alexandre.drouin@orckestra.com> wrote:
> Does anyone knows where the listener should be defined in solrconfig.xml?
>
>
> Alexandre Drouin
>
>
> -----Original Message-----
> From: Alexandre Drouin [mailto:alexandre.drouin@orckestra.com]
> Sent: July 29, 2016 10:46 AM
> To: solr-user@lucene.apache.org
> Subject: Where should the listeners be defined in solrconfig.xml (Solr
> 6.0.1)
> Importance: High
>
> Hello,
>
> I was wondering where I should put the <listener> configuration. I can
> see from the sample solrconfig.xml that they are defined under the
> <updateHandler> and <query> elements.
> The Schema API for listeners does not specify a parent of type
> updateHandler or query so I wanted to know if I also define them directly
> under the root of the xml document (config)?
>
> Alexandre Drouin
>
>
--
Sincerely yours
Mikhail Khludnev
RE: Where should the listeners be defined in solrconfig.xml (Solr
6.0.1)
Posted by Alexandre Drouin <al...@orckestra.com>.
Does anyone knows where the listener should be defined in solrconfig.xml?
Alexandre Drouin
-----Original Message-----
From: Alexandre Drouin [mailto:alexandre.drouin@orckestra.com]
Sent: July 29, 2016 10:46 AM
To: solr-user@lucene.apache.org
Subject: Where should the listeners be defined in solrconfig.xml (Solr 6.0.1)
Importance: High
Hello,
I was wondering where I should put the <listener> configuration. I can see from the sample solrconfig.xml that they are defined under the <updateHandler> and <query> elements.
The Schema API for listeners does not specify a parent of type updateHandler or query so I wanted to know if I also define them directly under the root of the xml document (config)?
Alexandre Drouin