Class SuggestRequest


public class SuggestRequest extends ContentRequest
This class is used for performing suggest requests to the Loop54 e-commerce search engine.
  • Field Details

    • query

      public final String query
      The partial query that the user has entered.
    • useTopSuggestionForSearch

      public final boolean useTopSuggestionForSearch
      When 'true', the search may run against the top suggested autocompletion for the input query.
    • queriesOptions

      public final QueryCollectionParameters queriesOptions
      Parameters for specifying how the suggest results should be retrieved. Contains paging and sorting options.
    • resultsOptions

      public final EntityCollectionParameters resultsOptions
      Parameters for specifying which direct results to retrieve. Such as filtering, faceting, sorting and paging.
  • Constructor Details

    • SuggestRequest

      public SuggestRequest(String query)
      The partial query that the user has entered.
      Parameters:
      query - the query to get auto complete suggestions for.
    • SuggestRequest

      public SuggestRequest(String query, boolean useTopSuggestionForSearch)
      The partial query that the user has entered.
      Parameters:
      query - the query to get auto complete suggestions for.
      useTopSuggestionForSearch - When 'true', the search may run against the top suggested autocompletion for the input query.
  • Method Details