You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2007/11/01 23:04:55 UTC
[Solr Wiki] Update of "SolrPlugins" by HossMan
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by HossMan:
http://wiki.apache.org/solr/SolrPlugins
The comment on the change is:
classloader fairly tested now, more comments about jars to compile against
------------------------------------------------------------------------------
Plugin code can be loaded into Solr by putting Jars containing your classes in a `lib` directory in your Solr Home directory prior to starting your servlet container. In the example program, the location is example/solr/lib. ''This directory does not exist in the distribution'', so you would need to do `mkdir` for the first time.
- This is a relatively new feature (as of 2006-11-13) which uses a custom Class Loader. It's not yet clear exactly how successful this approach works on the multitudes of servlet containers available in the wild.
+ This feature for loading plugins uses a custom Class Loader. It has been tested with a variety of Servlet Containers, but given the multitudes of servlet containers available in the wild it may not always work with ''every'' servlet container.
== The Old Way ==
@@ -20, +20 @@
= Building Plugins =
- To develop your own plugins, add the `apache-solr-XX.jar` to the classpath you use to compile your code. It contains all of the Solr Interface and Class files you may need.
+ To develop your own plugins, add the `apache-solr-*.jar` jar files to the classpath you use to compile your code. They contains all of the Solr Interfaces and Class files you may need. If you are developing plugins that know about lower level Lucene interfaces, you may need to also include the `lucene-*.jar` jar files from the `lib/` directory of your Solr distribution.
= Classes that are 'Pluggable' =