Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Solr, mail # user - How to tell whether a plugin is loaded?


Copy link to this message
-
Re: How to tell whether a plugin is loaded?
Chris Hostetter 2010-09-29, 01:34

: then in method createParser() add the following:
:
: req.getCore().getInfoRegistry().put(getName(), this);

that doesn't seem like a good idea -- createParser will be called every
time a string needs to be parsed, you're overwriting the same entry in the
infoRegistry over and over and over again.

I would just put that logic in your init() method (make sure to put the
QParserPlugin in the registry, not the individual QParser instances)

: I wonder though whether it'd be useful if Solr QParserPlugin did
: implement SolrInfoMBean by default already...

I agree ... i think that was an oversight when QParser was added.

There's an open issue for it, but no one has had a chance to get arround
to it yet...

https://issues.apache.org/jira/browse/SOLR-1428

-Hoss

--
http://lucenerevolution.org/  ...  October 7-8, Boston
http://bit.ly/stump-hoss      ...  Stump The Chump!