Class SuggestBuilder

All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class SuggestBuilder extends Object implements Writeable, org.elasticsearch.common.xcontent.ToXContentObject
Defines how to perform suggesting. This builders allows a number of global options to be specified and an arbitrary number of SuggestionBuilder instances.

Suggesting works by suggesting terms/phrases that appear in the suggest text that are similar compared to the terms in provided text. These suggestions are based on several options described in this class.

  • Field Details


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

    • SuggestBuilder

      public SuggestBuilder()
      Build an empty SuggestBuilder.
    • SuggestBuilder

      public SuggestBuilder(StreamInput in) throws IOException
      Read from a stream.
  • Method Details