Use the Query Elevation Component
-
Create an XML file named
elevate.xml
in the same directory as thesolrconfig.xml
file. Use the following as the contents of the file:<?xml version="1.0" encoding="UTF-8" ?> <elevate> </elevate>
Although it will not be accessed for the elevation process, Fusion requires this independent elevate.xml
file for the use of built-in rule actions with QEC. -
Add the following in the elevator searchComponent:
<str name="config-file">elevate.xml</str>
-
Add elevate as a 'last component' part of the select handler in the
solrconfig.xml
file. If alast-components
array is not already defined, create it at the end of the select handler’s configuration. If one is already defined, add<str>elevator</str>
.<arr name="last-components"> <str>spellcheck</str> <str>elevator</str> </arr>
-
When you create a new business rule, check the USE QUERY ELEVATION COMPONENT checkbox to use elevation.
The Query Elevation Component only elevates documents within the query rewriting rules engine by the document id field. Ensure id is entered in the "FIELD NAME" option.
|