Class NoopQuerySuggester

java.lang.Object
de.cxp.ocs.smartsuggest.querysuggester.NoopQuerySuggester
All Implemented Interfaces:
QuerySuggester, AutoCloseable

public class NoopQuerySuggester extends Object implements QuerySuggester
  • Constructor Details

    • NoopQuerySuggester

      public NoopQuerySuggester()
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • suggest

      public List<Suggestion> suggest(String term, int maxResults, Set<String> tags) throws SuggestException
      Specified by:
      suggest in interface QuerySuggester
      Parameters:
      term - the term for which to get suggestions
      maxResults - the maximum number of suggestions to return
      tags - the group names used for filtering
      Returns:
      A list of suggestions for the given term
      Throws:
      SuggestException
    • isReady

      public boolean isReady()
      Specified by:
      isReady in interface QuerySuggester
      Returns:
      true if ready to serve suggestions
    • recordCount

      public long recordCount()
      Description copied from interface: QuerySuggester
      return amount of records indexed into this QuerySuggester.
      Specified by:
      recordCount in interface QuerySuggester
      Returns:
      amount of indexed records