Class StopTokenFilter

java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase
co.elastic.clients.elasticsearch._types.analysis.StopTokenFilter
All Implemented Interfaces:
TokenFilterDefinitionVariant, JsonpSerializable

@JsonpDeserializable public class StopTokenFilter extends TokenFilterBase implements TokenFilterDefinitionVariant
See Also:
  • Field Details

  • Method Details

    • of

    • _tokenFilterDefinitionKind

      public TokenFilterDefinition.Kind _tokenFilterDefinitionKind()
      TokenFilterDefinition variant kind.
      Specified by:
      _tokenFilterDefinitionKind in interface TokenFilterDefinitionVariant
    • ignoreCase

      @Nullable public final Boolean ignoreCase()
      If true, stop word matching is case insensitive. For example, if true, a stop word of the matches and removes The, THE, or the. Defaults to false.

      API name: ignore_case

    • removeTrailing

      @Nullable public final Boolean removeTrailing()
      If true, the last token of a stream is removed if it’s a stop word. Defaults to true.

      API name: remove_trailing

    • stopwords

      public final List<String> stopwords()
      Language value, such as _arabic_ or _thai_. Defaults to _english_.

      API name: stopwords

    • stopwordsPath

      @Nullable public final String stopwordsPath()
      Path to a file that contains a list of stop words to remove. This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each stop word in the file must be separated by a line break.

      API name: stopwords_path

    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class TokenFilterBase
    • setupStopTokenFilterDeserializer

      protected static void setupStopTokenFilterDeserializer(ObjectDeserializer<StopTokenFilter.Builder> op)