Class PhraseSuggestionBuilder

java.lang.Object
org.elasticsearch.search.suggest.SuggestionBuilder<PhraseSuggestionBuilder>
org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder
All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class PhraseSuggestionBuilder extends SuggestionBuilder<PhraseSuggestionBuilder>
Defines the actual suggest command for phrase suggestions ( phrase).
  • Field Details

    • SUGGESTION_NAME

      public static final String SUGGESTION_NAME
      See Also:
      Constant Field Values
    • MAXERRORS_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField MAXERRORS_FIELD
    • RWE_LIKELIHOOD_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField RWE_LIKELIHOOD_FIELD
    • SEPARATOR_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField SEPARATOR_FIELD
    • CONFIDENCE_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField CONFIDENCE_FIELD
    • GRAMSIZE_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField GRAMSIZE_FIELD
    • SMOOTHING_MODEL_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField SMOOTHING_MODEL_FIELD
    • FORCE_UNIGRAM_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField FORCE_UNIGRAM_FIELD
    • TOKEN_LIMIT_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField TOKEN_LIMIT_FIELD
    • HIGHLIGHT_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField HIGHLIGHT_FIELD
    • PRE_TAG_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField PRE_TAG_FIELD
    • POST_TAG_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField POST_TAG_FIELD
    • COLLATE_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField COLLATE_FIELD
    • COLLATE_QUERY_FIELD

      protected static final org.elasticsearch.common.xcontent.ParseField COLLATE_QUERY_FIELD
    • COLLATE_QUERY_PARAMS

      protected static final org.elasticsearch.common.xcontent.ParseField COLLATE_QUERY_PARAMS
    • COLLATE_QUERY_PRUNE

      protected static final org.elasticsearch.common.xcontent.ParseField COLLATE_QUERY_PRUNE
  • Constructor Details

    • PhraseSuggestionBuilder

      public PhraseSuggestionBuilder(String field)
    • PhraseSuggestionBuilder

      public PhraseSuggestionBuilder(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
  • Method Details