Response rewriting
Response rewriting is a strategy for improving relevancy using AI-generated data by modifying Solr’s response before passing it to the search application. There are two approaches to configuring response rewriting:
Rules
Any rule type can add content to the response by modifying the responseValues
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.
For more information, see Query rewriting business rules section.
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
-
"De-bias" results by shuffling the top N results randomly.
-
"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.
-
-
Stages that act on individual documents
-
Response Document Exclusion stage
Drop all documents that match all of the specified rules.
-
Modify Response with Rules stage
Apply rules to the response.
-