SearchResult Class
A wrapper object that contains an sObject and search metadata.
The following are methods for SearchResult.
-
Returns an sObject from a SearchResult object.
-
Returns a snippet from a Case, Feed, or Knowledge Article SearchResult object based on the specified field name.
-
Returns a snippet from a SearchResult object based on the default field.
Returns an sObject from a SearchResult object.
public SObject getSObject()
Type: SObject
See Also
Returns a snippet from a Case, Feed, or Knowledge Article SearchResult object based on the specified field name.
public String getSnippet(String fieldName)
- fieldName: Type: String The field name to use for creating the snippet. Valid values:
Case.Casenumber,FeedPost.Title,KnowledgeArticleVersion.Title
Type: String
See Also
Returns a snippet from a SearchResult object based on the default field.
public String getSnippet()
Type: String
See Also