> ## 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.

# Misspelling Detection

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

export const InlineImage = ({src, alt = '', height = '2em'}) => {
  return <img src={src} alt={alt} style={{
    display: 'inline',
    verticalAlign: 'start',
    height: height,
    margin: '0'
  }} />;
};

[localhost link]: http://localhost:3000/docs/5/fusion/getting-data-out/query-enhancement/misspelling-detection

[mintlify link]: https://doc.lucidworks.com/docs/5/fusion/getting-data-out/query-enhancement/misspelling-detection

[old doc.lw link]: https://doc.lucidworks.com/fusion/5.9/488

The Misspelling Detection feature maps misspellings to their corrected spellings. When Fusion receives a query containing a known misspelling, it rewrites the query using the corrected spelling in order to return relevant results instead of an empty or irrelevant results set.

<Note>
  This feature is deprecated in Fusion 5.9.15 and will be removed in a future release.
  Lucidworks recommends migrating to [Neural Hybrid Search](/docs/5/fusion/hybrid-search/overview), which achieves superior relevance compared to legacy machine learning methods.
</Note>

Spelling corrections are applied in the [Text Tagger stage](/docs/5/fusion/reference/config-ref/pipeline-stages/query-stages/text-tagger-query-stage) of the query pipeline.

The [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction) automatically creates spelling corrections based on your AI-generated data. When you navigate to **Relevance** > **Rules** > **Rewrite** and select the **Misspelling** tab, the application displays the **Misspelling Detection** screen.

You can:

* **Use Misspelling Detection** the output from the job
* **Use Misspelling Detection**
* **Use Misspelling Detection** from the `_query_rewrite_staging` collection

<AccordionGroup>
  <Accordion title="Use Misspelling Detection">
    <Card title="Query Analytics" class="note-image" href="https://academy.lucidworks.com/query-analytics" cta="Take this course on the LucidAcademy." icon="graduation-cap" iconType="duotone">
      The course for **Query Analytics** focuses on how Fusion provides query analytics to detect and improve underperforming queries.
    </Card>

    {/* // tag::review[] */}

    <LwTemplate />

    ## Reviewing auto-generated spelling corrections

    Spelling corrections that are automatically generated by the [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction) are assigned one of the following status values:

    * **Auto**

      There are three values for confidence level:

      | Value | Confidence        | Label   |
      | ----- | ----------------- | ------- |
      | 0     | low confidence    | Pending |
      | 0.5   | median confidence | Auto    |
      | 1     | high confidence   | Auto    |

      <Note>No action is required on these results, but you can edit them if you wish.</Note>

    * **Pending**

      The confidence level is ambiguous, and the result must be reviewed by a user before it can be deployed.  It will only be moved from the `_query_rewrite_staging` collection to the `_query_rewrite` collection when its status has changed to "Approved" *and* it has been published.

    1. Navigate to **Relevance** > **Rules** > **Rewrite**.

    2. Select **Misspelling** tab. The application displays the **Misspelling Detection** screen.

       <Tip>   Notice the **Status** facet on the left.  Click **Pending** to view only the items that need review.</Tip>

    3. Click the <InlineImage src="/assets/images/4.2/icons/edit-rule.png" alt="Edit icon" /> icon next to the spelling correction.

    4. In the **Status** column, select either "Approved" or "Denied".

       Optionally, you can also edit the spelling correction itself.

    {/* // end::review[] */}

    {/* // tag::add-new[] */}

    ## Adding new spelling corrections

    You can manually add spelling corrections in addition to any generated by the Fusion 5.x.x [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction) release.

    1. Navigate to **Relevance** > **Rules** > **Rewrite**.
    2. Select **Misspelling** tab. The application displays the **Misspelling Detection** screen.
    3. At the bottom of the rules list, click the <InlineImage src="/assets/images/4.2/icons/add-rule.png" alt="Add icon" /> icon.

       A new spelling correction appears at the top of the list:

           <img src="https://mintcdn.com/lucidworks/tklssWuUmNaxlF0b/assets/images/5.4/add-spell-correction.png?fit=max&auto=format&n=tklssWuUmNaxlF0b&q=85&s=d805cefbf33579cf194d65875f785ece" alt="Add a spelling correction" width="1567" height="702" data-path="assets/images/5.4/add-spell-correction.png" />
    4. Enter the misspelled word or phrase.
    5. Enter one or more spelling corrections.

       <Tip>   It is not necessary to set a confidence value.</Tip>
    6. Select the spelling correction’s status, depending on whether you want to deploy it the next time you publish your changes ("Approved") or save it for further review ("Pending").
    7. Click the check mark to save the new spelling correction:

           <img src="https://mintcdn.com/lucidworks/tklssWuUmNaxlF0b/assets/images/5.4/save-spell-correction.png?fit=max&auto=format&n=tklssWuUmNaxlF0b&q=85&s=d14268cd37b78f9b545d58f49aa85974" alt="Save a spelling correction" width="1574" height="708" data-path="assets/images/5.4/save-spell-correction.png" />

    {/* // end::add-new[] */}

    {/* // tag::publish[] */}

    ## Publishing your changes

    **How to publish updated spelling corrections**

    1. In the **Misspelling Detection** screen, click the **PUBLISH** button.

       Fusion prompts you to confirm that you want to publish your changes.
    2. Click **PUBLISH**.

    <Tip>You can un-publish a query rewrite by changing its status to "denied", then clicking **PUBLISH**.</Tip>

    {/* // end::publish[] */}

    ## Tuning the misspelling detection job

    The default configuration for the [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction), respectively, is designed for high accuracy and works well with most signal datasets, depending on the volume and quality of the signals.  If you are seeing too few results, or too many inaccurate results, then you can try tuning the job to achieve better results.

    To modify job configurations, you must be a Fusion user with one of the following roles or permissions that include access to job configurations:

    * [admin](/docs/5/fusion/operations/security/access-control/roles)
    * [developer](/docs/5/fusion/operations/security/access-control/roles)
    * [permissions](/docs/5/fusion/operations/security/access-control/permissions)

    ## Query rewrite jobs post-processing cleanup

    To perform more extensive cleanup of query rewrites, complete the procedures in Query Rewrite Jobs Post-processing Cleanup.
  </Accordion>

  <Accordion title="Use Misspelling Detection">
    <Note>
      **LucidAcademy**

      Lucidworks offers free training to help you get started.

      The **Course** for **Query Analytics** focuses on how Fusion provides query analytics to detect and improve underperforming queries:

      <Frame>
        <a href="https://academy.lucidworks.com/query-analytics" target="_blank">
          <div class="note-image-wrapper">
            <img noZoom src="https://mintcdn.com/lucidworks/XAF97Y6rmusyML1l/assets/images/training-covers/query-analytics.jpeg?fit=max&auto=format&n=XAF97Y6rmusyML1l&q=85&s=f13ef072bdfaa75ad26c38701b0791f0" alt="Query Analytics" class="note-image" width="600" height="325" data-path="assets/images/training-covers/query-analytics.jpeg" />

            <img noZoom src="https://mintcdn.com/lucidworks/Di65w1le998pswcf/assets/images/play-btn.svg?fit=max&auto=format&n=Di65w1le998pswcf&q=85&s=af49ac67eeff21aec8f19ca30724b934" alt="Play Button" class="note-image-overlay" width="100" height="100" data-path="assets/images/play-btn.svg" />
          </div>
        </a>
      </Frame>

      Visit the [LucidAcademy](https://academy.lucidworks.com) to see the full training catalog.
    </Note>

    {/* // tag::review[] */}

    ## Reviewing auto-generated spelling corrections

    Spelling corrections that are automatically generated by the [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction) are assigned one of the following status values:

    * **Auto**

      There are three values for confidence level:

      | Value | Confidence        | Label   |
      | ----- | ----------------- | ------- |
      | 0     | low confidence    | Pending |
      | 0.5   | median confidence | Auto    |
      | 1     | high confidence   | Auto    |

      <Note>No action is required on these results, but you can edit them if you wish.</Note>

    * **Pending**

      The confidence level is ambiguous, and the result must be reviewed by a user before it can be deployed.  It will only be moved from the `_query_rewrite_staging` collection to the `_query_rewrite` collection when its status has changed to "Approved" *and* it has been published.

    1. Navigate to **Relevance** > **Rules** > **Rewrite**.

    2. Select **Misspelling** tab. The application displays the **Misspelling Detection** screen.

       <Tip>   Notice the **Status** facet on the left.  Click **Pending** to view only the items that need review.</Tip>

    3. Click the <InlineImage src="/assets/images/4.2/icons/edit-rule.png" alt="Edit icon" /> icon next to the spelling correction.

    4. In the **Status** column, select either "Approved" or "Denied".

       Optionally, you can also edit the spelling correction itself.

    {/* // end::review[] */}

    {/* // tag::add-new[] */}

    ## Adding new spelling corrections

    You can manually add spelling corrections in addition to any generated by the Fusion 5.x.x [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction) release.

    1. Navigate to **Relevance** > **Rules** > **Rewrite**.
    2. Select **Misspelling** tab. The application displays the **Misspelling Detection** screen.
    3. At the bottom of the rules list, click the <InlineImage src="/assets/images/4.2/icons/add-rule.png" alt="Add icon" /> icon.

       A new spelling correction appears at the top of the list:

           <img src="https://mintcdn.com/lucidworks/tklssWuUmNaxlF0b/assets/images/5.4/add-spell-correction.png?fit=max&auto=format&n=tklssWuUmNaxlF0b&q=85&s=d805cefbf33579cf194d65875f785ece" alt="Add a spelling correction" width="1567" height="702" data-path="assets/images/5.4/add-spell-correction.png" />
    4. Enter the misspelled word or phrase.
    5. Enter one or more spelling corrections.

       <Tip>   It is not necessary to set a confidence value.</Tip>
    6. Select the spelling correction’s status, depending on whether you want to deploy it the next time you publish your changes ("Approved") or save it for further review ("Pending").
    7. Click the check mark to save the new spelling correction:

           <img src="https://mintcdn.com/lucidworks/tklssWuUmNaxlF0b/assets/images/5.4/save-spell-correction.png?fit=max&auto=format&n=tklssWuUmNaxlF0b&q=85&s=d14268cd37b78f9b545d58f49aa85974" alt="Save a spelling correction" width="1574" height="708" data-path="assets/images/5.4/save-spell-correction.png" />

    {/* // end::add-new[] */}

    {/* // tag::publish[] */}

    ## Publishing your changes

    **How to publish updated spelling corrections**

    1. In the **Misspelling Detection** screen, click the **PUBLISH** button.

       Fusion prompts you to confirm that you want to publish your changes.
    2. Click **PUBLISH**.

    <Tip>You can un-publish a query rewrite by changing its status to "denied", then clicking **PUBLISH**.</Tip>

    {/* // end::publish[] */}

    ## Tuning the misspelling detection job

    The default configuration for the [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction), respectively, is designed for high accuracy and works well with most signal datasets, depending on the volume and quality of the signals.  If you are seeing too few results, or too many inaccurate results, then you can try tuning the job to achieve better results.

    To modify job configurations, you must be a Fusion user with one of the following roles or permissions that include access to job configurations:

    * [admin](/docs/5/fusion/operations/security/access-control/roles)
    * [developer](/docs/5/fusion/operations/security/access-control/roles)
    * [permissions](/docs/5/fusion/operations/security/access-control/permissions)

    ## Query rewrite jobs post-processing cleanup

    To perform more extensive cleanup of query rewrites, complete the procedures in Query Rewrite Jobs Post-processing Cleanup.
  </Accordion>

  <Accordion title="Use Misspelling Detection">
    <Note>
      **LucidAcademy**

      Lucidworks offers free training to help you get started.

      The **Course** for **Query Analytics** focuses on how Fusion provides query analytics to detect and improve underperforming queries:

      <Frame>
        <a href="https://academy.lucidworks.com/query-analytics" target="_blank">
          <div class="note-image-wrapper">
            <img noZoom src="https://mintcdn.com/lucidworks/XAF97Y6rmusyML1l/assets/images/training-covers/query-analytics.jpeg?fit=max&auto=format&n=XAF97Y6rmusyML1l&q=85&s=f13ef072bdfaa75ad26c38701b0791f0" alt="Query Analytics" class="note-image" width="600" height="325" data-path="assets/images/training-covers/query-analytics.jpeg" />

            <img noZoom src="https://mintcdn.com/lucidworks/Di65w1le998pswcf/assets/images/play-btn.svg?fit=max&auto=format&n=Di65w1le998pswcf&q=85&s=af49ac67eeff21aec8f19ca30724b934" alt="Play Button" class="note-image-overlay" width="100" height="100" data-path="assets/images/play-btn.svg" />
          </div>
        </a>
      </Frame>

      Visit the [LucidAcademy](https://academy.lucidworks.com) to see the full training catalog.
    </Note>

    {/* // tag::review[] */}

    ## Reviewing auto-generated spelling corrections

    Spelling corrections that are automatically generated by the [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction) are assigned one of the following status values:

    * **Auto**

      There are three values for confidence level:

      | Value | Confidence        | Label   |
      | ----- | ----------------- | ------- |
      | 0     | low confidence    | Pending |
      | 0.5   | median confidence | Auto    |
      | 1     | high confidence   | Auto    |

      <Note>No action is required on these results, but you can edit them if you wish.</Note>

    * **Pending**

      The confidence level is ambiguous, and the result must be reviewed by a user before it can be deployed.  It will only be moved from the `_query_rewrite_staging` collection to the `_query_rewrite` collection when its status has changed to "Approved" *and* it has been published.

    1. Navigate to **Relevance** > **Rules** > **Rewrite**.

    2. Select **Misspelling** tab. The application displays the **Misspelling Detection** screen.

       <Tip>   Notice the **Status** facet on the left.  Click **Pending** to view only the items that need review.</Tip>

    3. Click the <InlineImage src="/assets/images/4.2/icons/edit-rule.png" alt="Edit icon" /> icon next to the spelling correction.

    4. In the **Status** column, select either "Approved" or "Denied".

       Optionally, you can also edit the spelling correction itself.

    {/* // end::review[] */}

    {/* // tag::add-new[] */}

    ## Adding new spelling corrections

    You can manually add spelling corrections in addition to any generated by the Fusion 5.x.x [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction) release.

    1. Navigate to **Relevance** > **Rules** > **Rewrite**.
    2. Select **Misspelling** tab. The application displays the **Misspelling Detection** screen.
    3. At the bottom of the rules list, click the <InlineImage src="/assets/images/4.2/icons/add-rule.png" alt="Add icon" /> icon.

       A new spelling correction appears at the top of the list:

           <img src="https://mintcdn.com/lucidworks/tklssWuUmNaxlF0b/assets/images/5.4/add-spell-correction.png?fit=max&auto=format&n=tklssWuUmNaxlF0b&q=85&s=d805cefbf33579cf194d65875f785ece" alt="Add a spelling correction" width="1567" height="702" data-path="assets/images/5.4/add-spell-correction.png" />
    4. Enter the misspelled word or phrase.
    5. Enter one or more spelling corrections.

       <Tip>   It is not necessary to set a confidence value.</Tip>
    6. Select the spelling correction’s status, depending on whether you want to deploy it the next time you publish your changes ("Approved") or save it for further review ("Pending").
    7. Click the check mark to save the new spelling correction:

           <img src="https://mintcdn.com/lucidworks/tklssWuUmNaxlF0b/assets/images/5.4/save-spell-correction.png?fit=max&auto=format&n=tklssWuUmNaxlF0b&q=85&s=d14268cd37b78f9b545d58f49aa85974" alt="Save a spelling correction" width="1574" height="708" data-path="assets/images/5.4/save-spell-correction.png" />

    {/* // end::add-new[] */}

    {/* // tag::publish[] */}

    ## Publishing your changes

    **How to publish updated spelling corrections**

    1. In the **Misspelling Detection** screen, click the **PUBLISH** button.

       Fusion prompts you to confirm that you want to publish your changes.
    2. Click **PUBLISH**.

    <Tip>You can un-publish a query rewrite by changing its status to "denied", then clicking **PUBLISH**.</Tip>

    {/* // end::publish[] */}

    ## Tuning the misspelling detection job

    The default configuration for the [Token and Phrase Spell Correction job](/docs/5/fusion/reference/config-ref/jobs/token-and-phrase-spell-correction), respectively, is designed for high accuracy and works well with most signal datasets, depending on the volume and quality of the signals.  If you are seeing too few results, or too many inaccurate results, then you can try tuning the job to achieve better results.

    To modify job configurations, you must be a Fusion user with one of the following roles or permissions that include access to job configurations:

    * [admin](/docs/5/fusion/operations/security/access-control/roles)
    * [developer](/docs/5/fusion/operations/security/access-control/roles)
    * [permissions](/docs/5/fusion/operations/security/access-control/permissions)

    ## Query rewrite jobs post-processing cleanup

    To perform more extensive cleanup of query rewrites, complete the procedures in Query Rewrite Jobs Post-processing Cleanup.
  </Accordion>
</AccordionGroup>

When you manually add new spelling corrections, subsequent job runs use those documents as input for machine learning to improve the job’s output. Unlike job-generated documents, manually-added query rewriting documents are never overwritten by new job output.

<Tip>
  Misspelled terms are completely replaced by their corrected terms. If you want to expand the query to include all alternative terms, set the synonyms to bi-directional. See [Synonym Detection](/docs/5/fusion/reference/config-ref/jobs/synonym-detection) for more information.
</Tip>

<img src="https://mintcdn.com/lucidworks/1FfsxYVDR4XL56q9/assets/images/5.1/ai-rules/ui/rules-ui-rewrite-misspelling.png?fit=max&auto=format&n=1FfsxYVDR4XL56q9&q=85&s=446df0300f44e8453ddfe500f68d4443" alt="Misspelling Detection screen" width="1796" height="1043" data-path="assets/images/5.1/ai-rules/ui/rules-ui-rewrite-misspelling.png" />

To learn how to use misspelling detection in the [Rules Editor](/docs/5/fusion/getting-data-out/query-enhancement/rules-editor), see **Use Query Rewrites in the Rules Editor**.

<Accordion title="Use Query Rewrites in the Rules Editor">
  This article describes how to use the Rewrites screen in the [Rules Editor](/docs/5/fusion/getting-data-out/query-enhancement/rules-editor).

  ## Query rewrite rule types

  * **Head/Tail.** Replace underperforming queries with queries that produce higher click-through rates. Query improvements always require review before they are published. Schedule the Head/Tail Analysis job to get AI-generated query improvements based on your signals collection. \
    \
    Manually created Head/Tail rewrites must provide an "Improved Query" in a format appropriate to the type of request the rewrite will be applied to.  For Legacy requests, this means a valid Solr query fit for use as the `q` parameter.  For DSL requests this means a JSON string representing the main DSL query. \
    \
    For more information, see:
    * [Underperforming Query Rewriting](/docs/5/fusion/getting-data-out/query-enhancement/underperforming-queries)
    * [Head/Tail Analysis Jobs](/docs/5/fusion/reference/config-ref/jobs/head-tail-analysis)
  * **Misspelling.** Fusion replaces misspelled query terms with their spelling corrections for better search results. Schedule the Token and Phrase Spell Correction job to get AI-generated spelling corrections based on your signals collection. For more information, see [Misspelling Detection](/docs/5/fusion/getting-data-out/query-enhancement/misspelling-detection).
  * **Phrase.** Known phrases are boosted when they appear in new queries. Schedule the Phrase Extraction job to get AI-generated phrases based on your signals collection.
    For more information, see [Phrase Detection](/docs/5/fusion/getting-data-out/query-enhancement/phrase-detection).
  * **Synonym.** Synonyms are used to expand queries so that they include all known synonyms of the query terms. To retrieve AI-generated synonyms based on your signals collection, schedule the [Synonym Detection job](/docs/5/fusion/reference/config-ref/jobs/synonym-detection).
  * **Remove Words** - Remove particular phrases from queries. Unlike other rewrites, these should be entered manually and are not generated by a job. For more information, see [Remove Words](/docs/5/fusion/getting-data-out/query-enhancement/remove-words).

  ## Facets

  ### Facet menu

  <img src="https://mintcdn.com/lucidworks/L5PMnIeZ03zhv8Ti/assets/images/5.6/facet-menu.png?fit=max&auto=format&n=L5PMnIeZ03zhv8Ti&q=85&s=7a220e907feef17ff297b2e8879131ed" alt="Facet rules" width="2946" height="1468" data-path="assets/images/5.6/facet-menu.png" />

  To facet the rules list by **Status** or **Published**, click one of the facet items within the facet categories.

  To facet the rules by **Confidence**, click and drag either slider to set the range of confidence you would like to see:

  <img src="https://mintcdn.com/lucidworks/1FfsxYVDR4XL56q9/assets/images/5.1/ai-rules/rules-facet-confidence.png?fit=max&auto=format&n=1FfsxYVDR4XL56q9&q=85&s=52f5364289ced44dda00fa72975c48fa" alt="Confidence facet" style={{ width: "300px" }} width="436" height="194" data-path="assets/images/5.1/ai-rules/rules-facet-confidence.png" />

  <Note>Faceting rules by confidence is not available for Head/Tail rewrites.</Note>

  ### Search

  Enter a term in the search bar to quickly facet your query rewrite rules.

  ## Rules

  Begin by selecting one of the query rewrite rule types you will create.

  <img src="https://mintcdn.com/lucidworks/1FfsxYVDR4XL56q9/assets/images/5.1/ai-rules/rewrite-rule-types.png?fit=max&auto=format&n=1FfsxYVDR4XL56q9&q=85&s=a1ca6d61e701b98db2946c3762b99502" alt="Query rewrite rule types" width="1941" height="1118" data-path="assets/images/5.1/ai-rules/rewrite-rule-types.png" />

  ### Create a rule

  1. Click **+Add**.
  2. In the new table row, complete the required fields, and additional fields as needed.
  3. Click the checkmark to save, or close to cancel the changes.

  ### Edit a rule

  1. Hold the pointer over the rule to edit.
  2. Click the pencil icon.
  3. Enter desired changes and click the checkmark to save, or close to cancel the changes.

  ### Approve/deny rules

  {/* // New or altered rules will need to be approved by a user with the appropriate permissions before the rule can be enabled. */}

  1. Hold the pointer over a rule.
  2. Select the checkbox that displays for that rule.
  3. To modify multiple rules, hold the pointer over each rule and select its corresponding checkbox.
  4. Click **Approve** or **Deny** as needed.

  {/* 
    This is not an explicit option in the rewrite screen. Is this implicit by approval/denial?

    ### Enable/disable a rule

    1. Hold the pointer over a rule.
    2. Select the checkbox that displays for that rule.
    3. To modify multiple rules, hold the pointer over each rule and select its corresponding checkbox.
    4. Click **Enable** or **Disable** as needed.
    */}

  ### Publish a rule

  1. Hold the pointer over a rule.
  2. Select the checkbox that displays for that rule.
  3. To publish multiple rules, hold the pointer over each rule and select its corresponding checkbox.
  4. Click **Publish Selected** to publish the selected rules.

  #### Publish an individual rule

  1. Hold the pointer over a rule.
  2. Click the <InlineImage src="/assets/images/5.1/ai-rules/buttons/publish-individual-button.png" alt="Publish individual button" /> button.
  3. To confirm, click **Publish**.

  ### Delete rules

  #### Delete a single rule

  1. Hold the pointer over a rule.
  2. Click the trash can.
  3. To confirm, click **Delete**.

  #### Delete multiple rules

  1. Hold the pointer over a rule.
  2. Select the checkbox that displays for that rule.
  3. To delete multiple rules, hold the pointer over each rule and select its corresponding checkbox.
  4. Click **Delete**.
  5. To confirm, click **Delete** again.

  ### Sort rules

  1. Hold the pointer over column titles. A <InlineImage src="/assets/images/5.1/ai-rules/icons/arrow-down-icon.png" alt="Arrow down icon" /> icon displays for some titles to indicate the rules list can be sorted by that column.
  2. Click the title column to sort the rules.

  <Note>The column that is currently sorting the rules list is indicated by an <InlineImage src="/assets/images/5.1/ai-rules/icons/arrow-down-icon.png" alt="Arrow down icon" /> or <InlineImage src="/assets/images/5.1/ai-rules/icons/arrow-up-icon.png" alt="Arrow up icon" /> icon.</Note>

  ### Export rules

  To export the rules list, click **Export**. This generates a `.csv` file that contains your rules.

  ## Columns

  ### Customize columns

  To customize columns:

  1. Hold the pointer over the row of column titles.
  2. Click the <InlineImage src="/assets/images/5.1/ai-rules/buttons/config-button.png" alt="Config button" />  button.

       <img src="https://mintcdn.com/lucidworks/TTnHmbCCHl-1HFoG/assets/images/5.1/ai-rules/customize-columns-qr.png?fit=max&auto=format&n=TTnHmbCCHl-1HFoG&q=85&s=ceadfee78e65c421d365622724ab20f7" alt="Customize Columns to Display" width="1822" height="1089" data-path="assets/images/5.1/ai-rules/customize-columns-qr.png" />
  3. In the Customize Columns to Display screen, select the checkboxes for the columns you want to display. Clear the checkboxes for columns you do not want to display.
  4. Click **Save**. To exit without saving your changes, click **Cancel**.
</Accordion>

<Card title="Query Analytics" class="note-image" href="https://academy.lucidworks.com/query-analytics" cta="Take this course on the LucidAcademy." icon="graduation-cap" iconType="duotone">
  The course for **Query Analytics** focuses on how Fusion provides query analytics to detect and improve underperforming queries.
</Card>
