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:


Any rule type can add content to the response by modifying the responseValues field. These two rule types can replace the whole response:

  • Banner

    Send users to a different URL instead of the search results.

  • Redirect

    Display a user-defined banner message when the rule fires.

See the main Rules topic for details.

Query pipeline stages

Query pipeline stages that perform response rewriting must appear after the Solr Query stage. These stages fall into two categories: