---
schema_version: "1"
id: eb8d26969f74a03a27068fac00188536a9fbeeeae62b06b9bce742d330d4a642
title: SearchSettings
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_searchsettings.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_searchsettings.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4a82f24049672864180bbf4111fe131180e7b684af13f50d5d2ea08e01549647
description: Represents an org's search settings.
---
# SearchSettings

Represents an org's search settings.

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

In the package manifest, all organization settings metadata types are accessed using the Settings name. See [Settings](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_settings.htm "Represents the organization settings related to a feature. For example, your password policies, session settings and network access controls are all available in the SecuritySettings component type.") for more details.

## File Suffix and Directory Location

SearchSettings values are stored in a single file named Search.settings in the settings folder. The .settings files are different from other named components because there’s only one settings file for each settings component.

## Version

SearchSettings is available in API version 37.0 and later.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d840026e109">Field Name</th>

              <th class="featureTableHeader  " id="d840026e112">Field Type</th>

              <th class="featureTableHeader  " id="d840026e115">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">documentContentSearchEnabled</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether a full-text document search is
                performed.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableAdvancedSearchInAlohaSidebar</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether advanced search is available in the search
                sidebar (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). Available in Salesforce
                Classic only. Available in API version 46.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableEinsteinSearchAssistantDialog</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether the Einstein search experience is enabled
                (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). Available in API version
                50.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableEinsteinSearchEs4kPilot</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether Einstein Search for Knowledge enhancements are
                enabled (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). Available in API version
                54.0 and later.<p class="p">This feature became generally available in Winter
                  '23. In API version 56.0 and later, the default value is <samp class="codeph nolang">true</samp>.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableEinsteinSearchNaturalLanguage</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether natural language search is enabled (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). Available in API version
                50.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableEinsteinSearchNLSFilters</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether the Natural Language Search Filters (Pilot)
                feature is enabled (<samp class="codeph nolang">true</samp>) or
                not (<samp class="codeph nolang">false</samp>). Available in API
                version 54.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableEinsteinSearchPersonalization</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether search personalization is enabled (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). Available in Lightning
                Experience only. Available in API version 47.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enablePersonalTagging</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether users are allowed to group records from various
                objects by a common theme (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).
                Personal tags are visible to the user only. Available in Salesforce
                Classic only. Available in API version 48.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enablePublicTagging</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether users are allowed to group records from various
                objects by a common theme (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).
                Personal tags are visible to all users. Available in Salesforce
                Classic only. Available in API version 48.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableSalesforceGeneratedSynonyms</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether search synonyms are enabled (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). Available in API version
                47.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableSearchTermHistory</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether users are allowed to group records from various
                objects by a common theme (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).
                Public tags are visible to everyone in the organization. Available
                in Salesforce Classic only. Available in API version 48.0 and
                later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableSetupSearch</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether the search box in the Setup sidebar returns
                matching custom fields, custom objects, and other supported setup
                items when you press Enter (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The default is <samp class="codeph nolang">true</samp> in Developer, Performance, Professional,
                Enterprise, and Unlimited editions, and <samp class="codeph nolang">false</samp> in all other editions. Available in API version
                47.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableSuggestArticlesLinksOnly</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether links are provided to knowledge articles from
                Cases similar to the current Case (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). Available in API version 48.0 and
                later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">enableUseDefaultSearchEntity</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Indicates whether to use the admin-specified default entity in
                sidebar search (<samp class="codeph nolang">true</samp>) or not
                (<samp class="codeph nolang">false</samp>). Available in
                Salesforce Classic only. Available in API version 48.0 and
                later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">optimizeSearchForCJKEnabled</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Required. Indicates whether the search is optimized for the
                Japanese, Chinese, and Korean languages (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). This setting affects sidebar search and the
                account search for <strong class="ph uicontrol">Find Duplicates</strong> on a lead
                record in sidebar search and global search. Enable this option if
                users are searching mostly in Japanese, Chinese, or Korean, and if
                the text in searchable fields is mostly in those languages.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">recentlyViewedUsersForBlankLookupEnabled</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Required. Indicates whether the list of records that are returned
                from a user autocomplete lookup and from a blank user lookup is
                taken from the user’s recently viewed user records (<samp class="codeph nolang">true</samp>). Otherwise this setting is
                <samp class="codeph nolang">false</samp> if the lookup shows a
                list of recently accessed user records from across your org (<samp class="codeph nolang">false</samp>). Only applies to User object
                blank lookup searches.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">searchSettingsByObject</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type"><a class="xref" href="#searchsettingsbyobject">SearchSettingsByObject</a></td>

              <td class="entry" headers="d840026e115" data-title="Description">Required. Represents a list of search settings for each
                object.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">sidebarAutoCompleteEnabled</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Required. Indicates whether autocomplete is enabled for sidebar
                search (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). Autocomplete is when users
                start typing search terms and sidebar search displays a matching
                list of recently viewed records.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">sidebarDropDownListEnabled</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Required. Indicates whether a dropdown list appears in the
                sidebar search section (<samp class="codeph nolang">true</samp>)
                or not (<samp class="codeph nolang">false</samp>). From this list,
                users can select to search within tags, within a specific object, or
                across all objects.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">sidebarLimitToItemsIOwnCheckboxEnabled</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Required. Indicates whether the <strong class="ph uicontrol">Limit to Items I
                  Own</strong> checkbox appears (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The checkbox allows your users to include only
                records for which they are the record owner when entering search
                queries in the sidebar.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">singleSearchResultShortcutEnabled</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Required. Indicates whether a shortcut is enabled (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). With the shortcut, users
                skip the search results page and go directly to the record’s detail
                page when their search returns only a single item. This setting
                doesn't apply to tags, case comments (in advanced search), and
                global search.</td>

            </tr>

            <tr>
              <td class="entry" headers="d840026e109" data-title="Field Name"><span class="keyword parmname">spellCorrectKnowledgeSearchEnabled</span></td>

              <td class="entry" headers="d840026e112" data-title="Field Type">boolean</td>

              <td class="entry" headers="d840026e115" data-title="Description">Required. Indicates whether spell check is enabled for Knowledge
                search (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).</td>

            </tr>

          </tbody>

        </table>

## SearchSettingsByObject

| Field Name | Field Type | Description |
| --- | --- | --- |
| searchSettingsByObject | [ObjectSearchSetting](#objectsearchsettings) | Contains a list of search settings for each object. |

## ObjectSearchSetting

A list of search settings for each object.

| Field Name | Field Type | Description |
| --- | --- | --- |
| enhancedLookupEnabled | boolean | Required. Indicates whether enhanced lookups is enabled for the object (true) or not (false). |
| lookupAutoCompleteEnabled | boolean | Required. Indicates whether autocomplete is enabled for lookup search (true) or not (false). Autocomplete is when users edit the lookup field inline by choosing an autosuggestion. |
| name | string | Required. The entity name of the object being configured. |
| resultsPerPageCount | int | Required. The number of search results per page. |

## Declarative Metadata Sample Definition

The following is an example of the Search.settings file.

<?xml version="1.0" encoding="UTF-8"?>
    <SearchSettings xmlns="http://soap.sforce.com/2006/04/metadata">
        <enableSetupSearch\>false</enableSetupSearch\>
        <enableAdvancedSearchInAlohaSidebar\>false</enableAdvancedSearchInAlohaSidebar\>
        <enableQuerySuggestionPigOn\>false</enableQuerySuggestionPigOn\>
        <enableSalesforceGeneratedSynonyms\>false</enableSalesforceGeneratedSynonyms\>
        <enableSearchTermHistory\>false</enableSearchTermHistory\>
        <enablePublicTagging\>false</enablePublicTagging\>
        <enablePersonalTagging\>false</enablePersonalTagging\>
        <enableSuggestArticlesLinksOnly\>false</enableSuggestArticlesLinksOnly\>
        <enableUseDefaultSearchEntity\>false</enableUseDefaultSearchEntity\>
            <documentContentSearchEnabled\>true</documentContentSearchEnabled\>
            <optimizeSearchForCJKEnabled\>true</optimizeSearchForCJKEnabled\>
            <recentlyViewedUsersForBlankLookupEnabled\>true</recentlyViewedUsersForBlankLookupEnabled\>
            <searchSettingsByObject\>
            <searchSettingsByObject\>
                <enhancedLookupEnabled\>false</enhancedLookupEnabled\>
                <lookupAutoCompleteEnabled\>false</lookupAutoCompleteEnabled\>
                <name\>Account</name\>
                <resultsPerPageCount\>25</resultsPerPageCount\>
            </searchSettingsByObject\>
            <searchSettingsByObject\>
                <enhancedLookupEnabled\>false</enhancedLookupEnabled\>
                <lookupAutoCompleteEnabled\>false</lookupAutoCompleteEnabled\>
                <name\>Activity</name\>
                <resultsPerPageCount\>25</resultsPerPageCount\>
            </searchSettingsByObject\>
            <searchSettingsByObject\>
                <enhancedLookupEnabled\>false</enhancedLookupEnabled\>
                <lookupAutoCompleteEnabled\>false</lookupAutoCompleteEnabled\>
                <name\>Asset</name\>
                <resultsPerPageCount\>25</resultsPerPageCount\>
            </searchSettingsByObject\>
            </searchSettingsByObject\>
            <sidebarAutoCompleteEnabled\>true</sidebarAutoCompleteEnabled\>
            <sidebarDropDownListEnabled\>true</sidebarDropDownListEnabled\>
            <sidebarLimitToItemsIOwnCheckboxEnabled\>true</sidebarLimitToItemsIOwnCheckboxEnabled\>
            <singleSearchResultShortcutEnabled\>true</singleSearchResultShortcutEnabled\>
            <spellCorrectKnowledgeSearchEnabled\>true</spellCorrectKnowledgeSearchEnabled\>
        <enableEinsteinSearchPersonalization\>true</enableEinsteinSearchPersonalization\>
    </SearchSettings\>

## Example Package Manifest

The following is an example package manifest used to deploy or retrieve the Search settings metadata for an organization.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>Search</members\>
        <name\>Settings</name\>
    </types\>
    <version\>37.0</version\>
</Package\>

## Wildcard Support in the Manifest File

The wildcard character \* (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see [Settings](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_settings.htm "Represents the organization settings related to a feature. For example, your password policies, session settings and network access controls are all available in the SecuritySettings component type."). For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").