I want to create a index-time business rule using drools. My use case involves modifying the documents before it has been indexed based on certain rules which I create, or to clean the documents before they have been indexed.
To create an indexing time business rule you need to modify the defaultDocs.drl drools file and add your rule in it.
The defaultDocs.drl file is present in the "$LWS_HOME/conf/cores/solr/[core-name]/conf/rules/ " directory of your installation. $LWS_HOME refers to the base directory where LucidWorks Search has been installed.
Once added don't forget to "Reload" the Solr Core for the rule to take effect.
For more information on creating rules you could have a look at - http://docs.lucidworks.com/display/MODULES/Example+Rules