Class Analyzer

java.lang.Object
com.datastax.astra.client.core.lexical.Analyzer

public class Analyzer extends Object
Analyzer used for indexing and searching 'lexical' data.
  • Constructor Details

    • Analyzer

      public Analyzer()
      Default constructor.
    • Analyzer

      public Analyzer(String strAnalyzer)
      Constructor with analyzer definition.
      Parameters:
      strAnalyzer - the analyzer definition
    • Analyzer

      public Analyzer(AnalyzerTypes strAnalyzer)
      Constructor with analyzer type.
      Parameters:
      strAnalyzer - the analyzer type
  • Method Details

    • tokenizer

      public Analyzer tokenizer(String name)
      Define a tokenizer by its name.
      Parameters:
      name - the analyzer name
      Returns:
      current reference
    • tokenizer

      public Analyzer tokenizer(String name, Map<String,String> args)
      Define a tokenizer by its name and arguments.
      Parameters:
      name - the analyzer name
      args - the arguments for the analyzer
      Returns:
      current reference
    • addFilter

      public Analyzer addFilter(String name)
      Adds a filter to the analyzer.
      Parameters:
      name - the name of the filter
      Returns:
      current reference
    • addFilter

      public Analyzer addFilter(String name, Map<String,String> args)
      Adds a filter to the analyzer.
      Parameters:
      name - the name of the filter
      args - the arguments for the filter
      Returns:
      current reference
    • addChartFilter

      public Analyzer addChartFilter(String name)
      Adds a char filter to the analyzer.
      Parameters:
      name - the name of the filter
      Returns:
      current reference
    • addChartFilter

      public Analyzer addChartFilter(String name, Map<String,String> args)
      Adds a char filter to the analyzer.
      Parameters:
      name - the name of the filter
      args - the arguments for the filter
      Returns:
      current reference