lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: QParserPlugin as jar?
Date Wed, 15 Dec 2010 18:19:07 GMT

On Dec 15, 2010, at 12:47 , Jan H√łydahl / Cominvent wrote:

> Hi,
> I tried to package the edismax QParser (SOLR-1553) as a .jar file for inclusion in an
already installed solr1.4.1, and dropped my new jar in SOLR_HOME/lib.
> However it failed with an exception. It suspect because the patch modifies o.a.s.s.QParserPlugin,
which is already existing on the classpath.
> Is there a way to dynamically initialize new plugins without statically updating the
QParserPlugin class?

Yes, you can simply register it in solrconfig.xml:

  <queryParser name="lucene" class=""/>

The QParserPlugin statically registered qparsers are just convenience so those come "built-in"
as registered (though can be overridden by registering a different class with the same name).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message