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.
Namespace
QuestionSuggestionFilter Methods
The following are methods for QuestionSuggestionFilter.
addGroupId(groupId)
Adds a filter to display questions associated with the single
specified group whose ID is passed in as an argument. This filter is
optional.
Signature
public void addGroupId(String groupId)
Parameters
- groupId
- Type: String
- The ID for a group.
Return Value
Type: void
Usage
To add more than one group, call the method multiple times.
addNetworkId(networkId)
Adds a filter to display questions associated with the single
specified network whose ID is passed in as an argument. This filter is
optional.
Signature
public void addNetworkId(String networkId)
Parameters
- networkId
- Type: String
- The ID of the Experience Cloud site about which you’re retrieving this information.
Return Value
Type: void
Usage
To add more than one network, call the method multiple times.
addUserId(userId)
Adds a filter to display questions belonging to the single specified
user whose ID is passed in as an argument. This filter is optional.
Signature
public void addUserId(String userId)
Parameters
- userId
- Type: String
- The ID for the user.
Return Value
Type: void
Usage
To add more than one user, call the method multiple times.
setTopicId(topicId)
Sets a filter to display questions associated with the single
specified topic whose ID is passed in as an argument. This filter is
optional.
Signature
public void setTopicId(String topicId)
Parameters
- topicId
- Type: String
- The ID for a topic.
Return Value
Type: void