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 2011/11/01 17:19:31 UTC
[Solr Wiki] Update of "HackingSolr" by PeterWolanin
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "HackingSolr" page has been changed by PeterWolanin:
http://wiki.apache.org/solr/HackingSolr?action=diff&rev1=12&rev2=13
== Solr Plugins ==
- The first thing to know if you are interested in hacking and customizing Solr, is that you may not need to customize the source at all. Solr has a fairly extensive number of [[SolrPlugins|Plugin Hooks]] that allow you to add custom functionality for a variety of purposes by developing against some simple APIs, and then use your plugins by placing your jar in a special "lib" directory and refering to them by name in your configuration file.
+ The first thing to know if you are interested in hacking and customizing Solr, is that you may not need to customize the source at all. Solr has a fairly extensive number of [[SolrPlugins|Plugin Hooks]] that allow you to add custom functionality for a variety of purposes by developing against some simple APIs, and then use your plugins by placing your jar in a special "lib" directory and referring to them by name in your configuration file.
+
+ <!> [[Solr3.4]] Note that the ant build.xml files changed in Solr 3.4+, so these instructions would need to be altered for earlier versions.
If you want to know how to add a custom plugin and let the plugin replace the web.xml. Create your plugin similar the existing plugins in the contrib directory.
Create a build.xml file and add this to the build.xml file. You will need to change the build.xml to fit your needs but this build.xml is showing you post-compile executions.
- What it is suposed to do is to replace the web.xml file with a custom-web.xml file and to place a compiled jar file from the plugin in to the lib directory so that solr will include it in the solr.war file.
+ What it is supposed to do is to replace the web.xml file with a custom-web.xml file and to place a compiled jar file from the plugin in to the lib directory so that solr will include it in the solr.war file.
{{{
<?xml version="1.0"?>