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.
The following are methods for QuestionSuggestionFilter.
-
Adds a filter to display questions associated with the single specified group whose ID is passed in as an argument. This filter is optional.
-
Adds a filter to display questions associated with the single specified network whose ID is passed in as an argument. This filter is optional.
-
Adds a filter to display questions belonging to the single specified user whose ID is passed in as an argument. This filter is optional.
-
Sets a new list of groups to replace the current list of groups where the group IDs are passed in as an argument. This filter is optional.
-
Sets a new list of networks to replace the current list of networks where the network IDs are passed in as an argument. This filter is optional.
-
Sets a filter to display questions associated with the single specified topic whose ID is passed in as an argument. This filter is optional.
-
Sets a new list of users to replace the current list of users where the users IDs are passed in as an argument. This filter is optional.
Adds a filter to display questions associated with the single specified group whose ID is passed in as an argument. This filter is optional.
public void addGroupId(String groupId)
- groupId: Type: String The ID for a group.
Type: void
To add more than one group, call the method multiple times.
Adds a filter to display questions associated with the single specified network whose ID is passed in as an argument. This filter is optional.
public void addNetworkId(String networkId)
- networkId: Type: String The ID of the Experience Cloud site about which you’re retrieving this information.
Type: void
To add more than one network, call the method multiple times.
Adds a filter to display questions belonging to the single specified user whose ID is passed in as an argument. This filter is optional.
public void addUserId(String userId)
- userId: Type: String The ID for the user.
Type: void
To add more than one user, call the method multiple times.
Sets a new list of groups to replace the current list of groups where the group IDs are passed in as an argument. This filter is optional.
public void setGroupIds(List<String> groupIds)
Type: void
Sets a new list of networks to replace the current list of networks where the network IDs are passed in as an argument. This filter is optional.
public void setNetworkIds(List<String> networkIds)
Type: void
Sets a filter to display questions associated with the single specified topic whose ID is passed in as an argument. This filter is optional.
public void setTopicId(String topicId)
- topicId: Type: String The ID for a topic.
Type: void
Sets a new list of users to replace the current list of users where the users IDs are passed in as an argument. This filter is optional.
public void setUserIds(List<String> userIds)
Type: void