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

    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

    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

    A wrapper object that contains an sObject and search metadata.

  • SearchResults Class

    Wraps the results returned by the Search.find(String​) method.

  • SuggestionOption Class

    Options that narrow record and article suggestion results returned from a call to System.Search.suggest(String, String, Search.SuggestionOption).

  • SuggestionResult Class

    A wrapper object that contains an sObject.

  • SuggestionResults Class

    Wraps the results returned by the Search.suggest(​String, String, Search.SuggestionOption) method.

See Also