QPL Solr Search Component Plug-In

From wiki.searchtechnologies.com
Revision as of 17:09, 3 March 2017 by Sdenny (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

For Information on Aspire 3.1 Click Here

This Page is Locked - Content no longer maintained - See QPL for the latest information.
Feature only available with Aspire Premium

The QPLSearchComponent is a Solr SearchComponent that executes a specified QPL Script. Its config parameters are:

  • defaultField - Default Solr Field.
  • scriptFile - Name of the QPL file to be invoked.
  • isProcessScript - If true, QPL script runs in process() method. If false or not specified, script runs in prepare() method.

It can be added to solrconfig.xml as follows:

 <searchComponent name="qplSearchFirst" class="com.searchtechnologies.qpl.solr.QPLSearchComponent" >
   <str name="scriptFile">search.qpl</str>
   <str name="defaultField">text</str>
   <str name="isProcessScript">false</str> 
 </searchComponent>	

To add a QPLSearchComponent to a requestHandler in solrconfig.xml, use something like the following:

 <arr name="first-components">
   <str>qplSearchFirst</str>
 </arr>