Class Analyzer

All Implemented Interfaces:
ObjectModel

public class Analyzer extends GenericModel
Schema for a full text search analyzer.
  • Method Details

    • newBuilder

      public Analyzer.Builder newBuilder()
      New builder.
      Returns:
      a Analyzer builder
    • name

      public String name()
      Gets the name. Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies depending on the analyzer usage: * For search indexes the default is `standard` * For query text indexes the default is `keyword` * For a query text index default_field the default is `standard`.
      Returns:
      the name
    • stopwords

      public List<String> stopwords()
      Gets the stopwords. Custom stopwords to use with the named analyzer where supported. Not used for `keyword`, `simple`, `whitespace`, `simple_asciifolding` or `perfield` analyzers. Ensure stopwords match the folded case for analyzers that perform folding.
      Returns:
      the stopwords