matchHashtag method

LogicalChannel matchHashtag(
  1. String value
)
inherited

Matches any Tweet containing a recognized hashtag, if the hashtag is a recognized entity in a Tweet.

This operator performs an exact match, NOT a tokenized match, meaning the rule #CocaCola will match posts with the exact hashtag #CocaCola, but not those with the hashtag #CocaCola.

The string passed to this method does not need to be prefixed with the symbol "#" to indicate a hashtag. However, if you pass a string prefixed with "#", it will still work.

Parameters

  • value: Hashtag value to be matched.

Type

Availability

  • Essential

Implementation

LogicalChannel matchHashtag(final String value) => _buffer.appendOperator(
      _standaloneOperation.createHashtag(value),
    );