---
schema_version: "1"
id: 61672554de161877e9b3aa1b9c3c50e58a59e66d5321e9c36bd76c24b8f22a25
title: Common Phrases
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_common_phrases.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_common_phrases.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8bad3fab1edf4efc500c4bdae727d63ec2b9ff64f3f2083d08cf3beec2779ab4
description: A common phrase is a search term with 2-5 words that are next to each other and in a specific order. Use common phrases to decrease noise in your search results and give B2C Commerce customers more targeted results for multi-word search queries.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Common Phrases

A common phrase is a search term with 2-5 words that are next to each other and in a specific order. Use common phrases to decrease noise in your search results and give B2C Commerce customers more targeted results for multi-word search queries.

For example, customers who search for _tables_ shouldn't get _table lamps_, because _table_ is a descriptor and _lamp_ is the desired result. On the other hand, if a customer is searching for _lamps_, they would see all types of lamps, including table lamps.

Common phrases can be staged with other search features. Common phrases can be imported using the `search2.xsd` schema. Common phrases can be exported and imported via Site Import and Export.

## Search Modes: Exact Match and Last Word

You can configure the common phrases feature to use different matching options:

- Exact Match: If you search on the exact phrase, only products that include the exact phrase appear. The exact phrase is all the words in the phrase in the same order and next to one another. Search queries that include terms from the common phrase don't return any of the products that contain the common phrase. For example, if _table lamps_ is a common phrase with exact match, then searching on _table lamp_ returns only table lamps. Searching on _table_, _lamp_, or _lamp table_ doesn't return table lamps. This is because during indexing, table lamp is indexed as a single phrase and not indexed for the individual terms.
- Long-tail Search Phrases with Duplicate Search Terms: If you search on the exact phrase with duplicate terms, the suggestion processor accepts the duplicate terms and returns highly relevant search results. Accepting duplicate search terms rather than autocorrecting duplicate terms to slightly different versions, improves search results. Autocorrecting terms in the search phrase can result in irrelevant search results.
- Last Word Match: if you search on the last word in the phrase or the exact phrase, products including the exact phrase appear. For example, if _table lamps_ is a common phrase with last word match, then searching on _table lamp_ returns only table lamps. However, unlike exact match, searching on _lamps_ returns all types of lamps, including table lamps. This is because during indexing, table lamp is indexed as a single phrase and as the last word in the phrase, but not any additional terms in the phrase.

## Exact Match Example

For exact match, the customer must search for the common phrase exactly as it is configured, so that the words in the phrase are adjacent and in the same order. Normally, exact match is used for phrases with individual terms that produce items unrelated to the phrase. Customers are not searching for individual terms with the phrase, they are only searching for product described by the full phrase. In the following examples, exact match is a good choice for the _bed in a bag_ phrase, because a customer is likely searching for the exact phrase.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e115">Match</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e118">Configured Common Phrase</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e121">Entered Search Phrase</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e124">Returns Products</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e127">Does Not Return Products</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Match" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e115 ">Exact</td>

            <td data-label="Configured Common Phrase" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e118 ">bed in a bag</td>

            <td data-label="Entered Search Phrase" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e121 ">bed in a bag</td>

            <td data-label="Returns Products" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e124 ">
              <ul>
                <li>bed in a bag​</li>

              </ul>
            </td>

            <td data-label="Does Not Return Products" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e127 ">
              <ul>
                <li>Beds​</li>

                <li>Bags (tote bags, handbags)</li>

              </ul>
            </td>

          </tr>
        </tbody>
      </table>

## Last Word Match Example

For last word match, the customer must search for the whole common phrase or the last word in the phrase for products including the common phrase to be returned. Normally, last word matching is used when the last word in the phrase is the most significant and you want to include the results for the exact phrase whenever a customer searches for the last term. In the following examples, last word match is a good choice for the _dress shirt_ phrase, because a customer searching for dresses doesn't want to see dress shirts. If the customer is searching for shirts, you want to return shirts, including dress shirts.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e193">Match</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e196">Configured Common Phrase</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e199">Entered Search Phrase</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e202">Returns Products</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161500e205">Does Not Return Products</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Match" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e193 ">Last word</td>

            <td data-label="Configured Common Phrase" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e196 ">dress shirt</td>

            <td data-label="Entered Search Phrase" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e199 ">
              <p>dress</p>
              <p style="margin-bottom:0;">(dress AND NOT dress shirt)</p>
            </td>

            <td data-label="Returns Products" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e202 ">
              <ul>
                <li>Women's dresses</li>

                <li>Casual Dresses</li>

              </ul>
            </td>

            <td data-label="Does Not Return Products" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e205 ">
              <ul>
                <li>Dress shirts</li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Match" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e193 ">Last word</td>

            <td data-label="Configured Common Phrase" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e196 ">dress shirt</td>

            <td data-label="Entered Search Phrase" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e199 ">
              <p>dress shirt</p>
              <p style="margin-bottom:0;">(dress shirt)</p>
            </td>

            <td data-label="Returns Products" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e202 ">
              <ul>
                <li>Dress shirt​</li>

              </ul>
            </td>

            <td data-label="Does Not Return Products" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e205 ">
              <ul>
                <li>Women's dresses</li>

                <li>Casual Dresses</li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Match" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e193 ">Last word</td>

            <td data-label="Configured Common Phrase" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e196 ">dress shirt</td>

            <td data-label="Entered Search Phrase" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e199 ">
              <p>shirts</p>
              <p style="margin-bottom:0;">(shirts AND dress shirt)</p>
            </td>

            <td data-label="Returns Products" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e202 ">
              <ul>
                <li>Dress shirt​</li>

                <li>T-shirts</li>

                <li>Casual shirts</li>

                <li>Short-sleeve shirt</li>

              </ul>
            </td>

            <td data-label="Does Not Return Products" class="slds-cell-wrap" style="vertical-align:top;" headers="d161500e205 ">&nbsp;</td>

          </tr>
        </tbody>
      </table>