SearchSuggestionResult.Builder

  • SearchSuggestionResult.Builder is a helper class for building SearchSuggestionResult objects.

  • The Builder has a constructor and two public methods: build() and setSuggestedResult().

  • The build() method creates a SearchSuggestionResult object.

  • The setSuggestedResult() method sets the suggested result string for the builder.

public static final class SearchSuggestionResult.Builder extends Object

The Builder class of SearchSuggestionResult.

Public Constructor Summary

Public Method Summary

SearchSuggestionResult
SearchSuggestionResult.Builder
setSuggestedResult(String suggestedResult)
Sets the suggested result that could be used as query expression in the AppSearchClient.search(String, SearchSpec, String).

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public SearchSuggestionResult build ()

Build a SearchSuggestionResult object

public SearchSuggestionResult.Builder setSuggestedResult (String suggestedResult)

Sets the suggested result that could be used as query expression in the AppSearchClient.search(String, SearchSpec, String).

The suggested result should only contain lowercase or special characters.