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.

Search

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.

  • 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.

  • 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.

  • setGroupIds(groupIds)

    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.

  • setNetworkIds(networkIds)

    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.

  • 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.

  • setUserIds(userIds)

    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)

  • groupIds: Type: List<String> A list of group IDs.

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)

  • networkIds: Type: List<String> A list of network IDs.

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