Rules
Any rule type can add content to the response by modifying theresponseValues
field. These two rule types can replace the whole response:
- Banner
Display a user-defined banner message when the rule fires. - Redirect
Send users to a different URL instead of the search results.
Query pipeline stages
Query pipeline stages that perform response rewriting must appear after the Solr Query stage. These stages fall into two categories:-
Stages that act on the whole set of results
-
Response Shuffle stage
”De-bias” results by shuffling the top N results randomly. -
Response Pairwise Swap stage
”De-bias” results by swapping the search results at any two positions, such as positions 1 and 2, positions 3 and 4, and so on.
-
Response Shuffle stage
-
Stages that act on individual documents
-
Response Document Exclusion stage
Drop all documents that match all of the specified rules. -
Response Document Field Redaction stage
Remove fields that match a regular expression from a document. - Modify Response with Rules stage Apply rules to the response.
-
Response Document Exclusion stage