> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Simulator

[localhost link]: http://localhost:3000/docs/4/fusion-ai/concepts/query-rewriting/simulator

[mintlify link]: https://doc.lucidworks.com/docs/4/fusion-ai/concepts/query-rewriting/simulator.md

[old doc.lw link]: https://doc.lucidworks.com/fusion-ai/4.2/484.md

The Simulator provides an interactive preview of how your staged rules affect relevancy, using your search data and a simple search interface. When you enter a query, the Simulator shows you the triggered rules, in the order in which they were triggered, along with any triggered facets.

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

![Simulator 4.x](https://mintcdn.com/lucidworks/vupE2UCZdg04NdXx/assets/images/4.2/rules-simulator.png?fit=max\&auto=format\&n=vupE2UCZdg04NdXx\&q=85\&s=201cd1056aa9b274115b5a853916623b)

You can edit any of the triggered rules, then re-run the query to see new results. You can also return to the query rewriting dashboard to enable or disable query rewriting strategies.

The Simulator sends requests to the `_rules_simulator` query profile, which you can configure to point to any pipeline and collection in your app.

Opening the Simulator

1. In the Fusion UI, navigate to **Relevancy** > **Query Rewriting**.\
   The query rewriting dashboard appears.
2. Click the **Simulator** button.\
   The Simulator appears:

   ![Rules Simulator](https://mintcdn.com/lucidworks/vupE2UCZdg04NdXx/assets/images/4.2/rules-simulator.png?fit=max\&auto=format\&n=vupE2UCZdg04NdXx\&q=85\&s=201cd1056aa9b274115b5a853916623b)

From here, you can:

* Enter search terms to see the results, using query rewriting data from the `_query_rewrite_staging` collection
* Edit rules that are triggered by the current query
* Click **Query Rewriting Dashboard** to go to the dashboard, where you can enable or disable query rewriting strategies, then return to the Simulator to see how relevancy is affected


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.