Class ElisionTokenFilter

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

@JsonpDeserializable public class ElisionTokenFilter 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
    • articles

      public final List<String> articles()
      List of elisions to remove. To be removed, the elision must be at the beginning of a token and be immediately followed by an apostrophe. Both the elision and apostrophe are removed. For custom elision filters, either this parameter or articles_path must be specified.

      API name: articles

    • articlesPath

      @Nullable public final String articlesPath()
      Path to a file that contains a list of elisions to remove. This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each elision in the file must be separated by a line break. To be removed, the elision must be at the beginning of a token and be immediately followed by an apostrophe. Both the elision and apostrophe are removed. For custom elision filters, either this parameter or articles must be specified.

      API name: articles_path

    • articlesCase

      @Nullable public final Boolean articlesCase()
      If true, elision matching is case insensitive. If false, elision matching is case sensitive. Defaults to false.

      API name: articles_case

    • serializeInternal

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

      protected static void setupElisionTokenFilterDeserializer(ObjectDeserializer<ElisionTokenFilter.Builder> op)