---
schema_version: "1"
id: ab249019240e94ccee116e88f3d9c5f3701360aa267e26a99dccf26e048af594
title: Search Namespace
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_namespace_Search.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Search.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: eef708b18cf8ebb0d16eb5f13ffe42bee03651fd18ba3957416a785249fb6916
description: The Search namespace provides classes for getting search results and suggestion results.
---
# Search Namespace

The Search namespace provides classes for getting search results and suggestion results.

The following are the classes in the Search namespace.

- **[KnowledgeSuggestionFilter Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Search_KnowledgeSuggestionFilter.htm#apex_class_Search_KnowledgeSuggestionFilter)**  
    Filter settings that narrow the results from a call to System.Search.suggest(searchQuery, sObjectType, options) when the SOSL search query contains a KnowledgeArticleVersion object.
- **[QuestionSuggestionFilter Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Search_QuestionSuggestionFilter.htm#apex_class_Search_QuestionSuggestionFilter)**  
    The Search.QuestionSuggestionFilter class filters results from a call to System.Search.suggest(searchQuery, sObjectType, options) when the SOSL searchQuery contains a FeedItem object.
- **[SearchResult Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Search_SearchResult.htm#apex_class_Search_SearchResult)**  
    A wrapper object that contains an sObject and search metadata.
- **[SearchResults Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Search_SearchResults.htm#apex_class_Search_SearchResults)**  
    Wraps the results returned by the Search.find(String​) method.
- **[SuggestionOption Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Search_SuggestionOption.htm#apex_class_Search_SuggestionOption)**  
    Options that narrow record and article suggestion results returned from a call to System.Search.suggest(String, String, Search.SuggestionOption).
- **[SuggestionResult Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Search_SuggestionResult.htm#apex_class_Search_SuggestionResult)**  
    A wrapper object that contains an sObject.
- **[SuggestionResults Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Search_SuggestionResults.htm#apex_class_Search_SuggestionResults)**  
    Wraps the results returned by the Search.suggest(​String, String, Search.SuggestionOption) method.

#### See Also

- [find(searchQuery)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_search.htm#apex_System_Search_find "Performs a dynamic SOSL query that can include the SOSL WITH SNIPPET clause. Snippets provide more context for users in Salesforce Knowledge article search results.")
- [suggest(searchQuery, sObjectType, suggestions)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_search.htm#apex_System_Search_suggest "Returns a list of records or Salesforce Knowledge articles whose names or titles match the user’s search query string. Use this method to provide users with shortcuts to navigate to relevant records or articles before they perform a search.")