Class Analyzer.LexicalFilter

java.lang.Object
com.datastax.astra.client.core.lexical.Analyzer.LexicalFilter
Enclosing class:
Analyzer

public static class Analyzer.LexicalFilter extends Object
Definition of filters and tokenizers
  • Constructor Details

    • LexicalFilter

      public LexicalFilter()
      Default constructor.
  • Method Details

    • name

      public Analyzer.LexicalFilter name(String name)
      Sets the name of the filter.
      Parameters:
      name - the name of the filter
      Returns:
      current reference
    • args

      public Analyzer.LexicalFilter args(Map<String,String> args)
      Sets the arguments for the filter.
      Parameters:
      args - the arguments for the filter
      Returns:
      current reference
    • addArg

      public Analyzer.LexicalFilter addArg(String key, String value)
      Adds an argument to the filter.
      Parameters:
      key - the key of the argument
      value - the value of the argument
      Returns:
      current reference