Differences between revisions 1 and 2
Revision 1 as of 2006-11-09 00:26:22
Size: 1081
Editor: HossMan
Comment:
Revision 2 as of 2006-11-14 03:51:31
Size: 1254
Editor: HossMan
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
At the moment, loading custom code into Solr is only easy in Resin. the mechanism for doing so can be found on the SolrResin configuration page. 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.
Line 11: Line 11:
A more general purpose mechanism is currently being investigated, but in the meantime the only method that works consistently on any servlet container is to: 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.

=== The Old Way ===

Another method that works consistently on any servlet container is to:

Solr Plugins

/!\ :TODO: /!\ write short summary of why people might want to load custom code, and the loose definition of a "Solr Plugin"

TableOfContents

How to Load Plugins

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.

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.

The Old Way

Another method that works consistently on any servlet container is to:

  1. unpack the solr.war
  2. add a jar containing your custom classes to the WEB-INF/lib directory

  3. repack your new, customized, solr.war and use it.

List of Classes that are 'Pluggable'

/!\ :TODO: /!\ for each class, link to javadocs and show example of where/how to configure usage

SolrRequestHandler

QueryResponseWriter

Similarity

Analyzer

TokenizerFactory

TokenFilterFactory

CacheRegenerator

FieldType

SolrCache

SolrEventListener

UpdateHandler

SolrPlugins (last edited 2017-01-03 19:18:41 by ShawnHeisey)