Class AnalyzerDescriptor

  • All Implemented Interfaces:
    AnalyzerDescriptorProvider, MappingAnalyzerDescriptor

    @Deprecated(since="8.7",
                forRemoval=true)
    public class AnalyzerDescriptor
    extends Object
    implements MappingAnalyzerDescriptor
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 8.7 as not supported by OpenSearch
    An AnalyzerDescriptor is a combination of a TokenizerDescriptor and some (possibly no) CharFilterDescriptors and TokenFilterDescriptors that collectively describe how to analyse text into tokens.

    The analysis chain can be visualised as: Text -> CharFilterDescriptor -> TokenizerDescriptor -> TokenFilterDescriptor -> Tokens

    For example: "the quick fox jumped over the lazy dog" ->

    CharFilterDescriptor replacing x with a ->

    "The quick foa jumped over the lazy dog" ->

    WhitespaceTokenizerDescriptor ->

    {"The" "quick" "foa" "jumped" "over" "the" "lazy" "dog"} ->

    LowerCaseTokenFilter ->

    {"the" "quick" "foa" "jumped" "over" "the" "lazy" "dog"} ->

    Since:
    7.17
    • Method Detail

      • getCharFilters

        public Collection<CharFilterDescriptor> getCharFilters()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getTokenizer

        public TokenizerDescriptor getTokenizer()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getTokenFilters

        public Collection<TokenFilterDescriptor> getTokenFilters()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • equals

        public boolean equals​(Object o)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        hashCode in class Object