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:
Any rule type can add content to the response by modifying the
responseValues field. These two rule types can replace the whole response:
Display a user-defined banner message when the rule fires.
Send users to a different URL instead of the search results.
See the main Rules topic for details.
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
Stages that act on individual documents