Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CountPatternBuilder

Hierarchy

Implemented by

Index

Methods

as

  • The output fields for the text pattern and occurrence count. The default is ["text", "count"].

    Parameters

    • textField: string

      Matched text pattern field

    • countField: string

      Occurrence count

    Returns CountPatternBuilder

build

case

field

pattern

  • A string containing a well-formatted regular expression, defining a pattern to match in the text. All unique pattern matches will be separately counted. The default value is [\w']+, which will match sequences containing word characters and apostrophes, but no other characters.

    Parameters

    • value: string

    Returns CountPatternBuilder

stopWords

  • A string containing a well-formatted regular expression, defining a pattern of text to ignore. For example, the value "(foo|bar|baz)" will treat the words "foo", "bar" and "baz" as stopwords that should be ignored. The default value is the empty string (""), indicating no stop words.

    Parameters

    • value: string

    Returns CountPatternBuilder