{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":38345,"path":"platform-administration/ai-search/search-sources-ais.md","title":"Search sources in AI Search","bundle":null,"doc_type":null,"release":"australia","body":"\n# Search sources in AI Search\n\nDefine search sources to make your searchable content available in search experiences. Choose an indexed source and configure optional filter conditions to limit the content that users can search.\n\n## Search source structure\n\nA search source includes two elements:\n\n-   A reference to an indexed source. By default, search queries using the search source can return all records from the referenced indexed source. For more information on indexed sources, see [Indexed sources in AI Search](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/ai-search/indexed-sources-ais.md).\n-   An optional set of filter conditions applied to the indexed source's records. Indexed source records must pass all of these filter conditions to be returned as search results for queries using the search source.\n\nYou can define multiple search sources that reference the same indexed source, specifying distinct filter conditions for each.\n\n## Filter conditions\n\nTo limit the set of indexed source table records that AI Search returns as search results, you can apply filter conditions to your search source.\n\n**Note:** Search source filter conditions can only operate on source record fields that are indexed. Fields on referenced records aren't indexed by default. To use a referenced record field in a search source filter condition, you must first configure indexing for the field in the indexed source. For details on this procedure, see [Enable indexing of referenced table fields for an AI Search indexed source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/ai-search/enable-ref-table-field-index-ais.md).\n\nYou can use static and dynamic filter conditions to filter search source records. As an example, you could apply a dynamic **\\[Assigned to\\] \\[is \\(dynamic\\)\\] \\[Me\\]** user filter to your search source. With this filter applied, the search source only returns search results for indexed source table records that are assigned to the search user.\n\nSearch sources don't support any of the following filter options:\n\n-   Filters that reference fields from child tables of the indexed source table. As an example, suppose you create an indexed source for the Task \\[task\\] table. Search sources for that indexed source can't use filters to reference fields from the Incident \\[incident\\] table because the Incident table is a child of the Task table.\n-   Dynamic filters with scripts that use [the **current** keyword or global variable](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/c_BusinessRules.md)\n-   Dynamic filters with scripts that reference any [global business rules](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/c_BusinessRules.md)\n-   Dynamic filters with scripts that use [script includes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/scripts/c_ScriptIncludes.md)\n\nFor more information on filter conditions, see [Filters](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_Filters.md). To learn about relationships between parent and child tables, see [Table extension and classes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/table-administration-and-data-management/table-extension-and-classes.md). For details on dynamic filter options and their associated scripts, see [Create a dynamic filter option](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/t_DynamicFilterOptions.md).\n\n## Linking search sources to search profiles\n\nTo make your search source's content available to users, link it to one or more search profiles. You can link multiple search sources to a single search profile.\n\nFor more information, see [Link a search source to a search profile](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/ai-search/link-search-source-profile-ais.md).\n\n## Unlinking search sources from search profiles\n\nIf you delete a search source that's linked to one or more search profiles, it's not automatically unlinked from those search profiles. You must manually unlink the search source from each search profile that it's linked to. For details on this procedure, see [Unlink a search source from a search profile](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/ai-search/unlink-search-source-profile-ais.md).\n\n## Viewing search sources\n\nYou can view or edit search sources from any of the following application modules:\n\n-   To view all defined search sources, navigate to **All** &gt; **AI Search** &gt; **Search Experience** &gt; **Search Sources**.\n-   To view search sources that reference a particular indexed source, navigate to **All** &gt; **AI Search** &gt; **AI Search Index** &gt; **Indexed Sources**. Open the indexed source and select its Search Source Mappings related list.\n-   To view search sources linked to a particular search profile, navigate to **All** &gt; **AI Search** &gt; **Search Experience** &gt; **Search Profiles**. Open the search profile and select its Search Sources related list.\n\n-   **[Create a search source for AI Search](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/ai-search/create-search-source-ais.md)**  \nMake searchable content from an indexed source available in user search experiences by defining a search source.\n-   **[Preview matching records for an AI Search search source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/ai-search/preview-search-source-records-ais.md)**  \nView the ServiceNow AI Platform® table records that match a search source's indexed source table and filter conditions.\n\n**Parent Topic:**[Configuring AI Search](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/ai-search/configuring-ais.md)\n\n"}}