Difference between revisions of "QPL Solr Search Component Plug-In"

From wiki.searchtechnologies.com
Jump to: navigation, search

For Information on Aspire 3.1 Click Here

m (Protected "QPL Solr Search Component Plug-In" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
Line 1: Line 1:
{{Aspire 2.0 Premium}}
{{Aspire 2.0 Premium}}

Latest revision as of 17:09, 3 March 2017

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> 

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

 <arr name="first-components">