Class CategorizationAnalyzerConfig

java.lang.Object
org.elasticsearch.client.ml.job.config.CategorizationAnalyzerConfig
All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class CategorizationAnalyzerConfig
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentFragment
Configuration for the categorization analyzer. The syntax is a subset of what can be supplied to the _analyzeendpoint. To summarize, the first option is to specify the name of an out-of-the-box analyzer: "categorization_analyzer" : "standard" The second option is to specify a custom analyzer by combining the char_filters, tokenizer and token_filters fields. In turn, each of these can be specified as the name of an out-of-the-box one or as an object defining a custom one. For example: "char_filters" : [ "html_strip", { "type" : "pattern_replace", "pattern": "SQL: .*" } ], "tokenizer" : "thai", "token_filters" : [ "lowercase", { "type" : "pattern_replace", "pattern": "^[0-9].*" } ]
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  CategorizationAnalyzerConfig.Builder  
    static class  CategorizationAnalyzerConfig.NameOrDefinition
    Simple store of either a name of a built-in analyzer element or a custom definition.

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
  • Field Summary

    Fields
    Modifier and Type Field Description
    static org.elasticsearch.common.ParseField CATEGORIZATION_ANALYZER  

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    java.lang.String getAnalyzer()  
    java.util.List<CategorizationAnalyzerConfig.NameOrDefinition> getCharFilters()  
    java.util.List<CategorizationAnalyzerConfig.NameOrDefinition> getTokenFilters()  
    CategorizationAnalyzerConfig.NameOrDefinition getTokenizer()  
    int hashCode()  
    org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment
  • Field Details

    • CATEGORIZATION_ANALYZER

      public static final org.elasticsearch.common.ParseField CATEGORIZATION_ANALYZER
  • Method Details

    • getAnalyzer

      public java.lang.String getAnalyzer()
    • getCharFilters

      public java.util.List<CategorizationAnalyzerConfig.NameOrDefinition> getCharFilters()
    • getTokenizer

    • getTokenFilters

      public java.util.List<CategorizationAnalyzerConfig.NameOrDefinition> getTokenFilters()
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object