HumHub Documentation (unofficial)

ShortWords
in package
implements TokenFilterInterface

Token filter that removes short words. What is short word can be configured with constructor.

Tags
category

Zend

subpackage

Analysis

Table of Contents

Interfaces

TokenFilterInterface
Token filter converts (normalizes) Token ore removes it from a token stream.

Properties

$length  : int
Minimum allowed term length

Methods

__construct()  : mixed
Constructs new instance of this filter.
normalize()  : Token
Normalize Token or remove it (if null is returned)

Properties

$length

Minimum allowed term length

private int $length

Methods

__construct()

Constructs new instance of this filter.

public __construct([mixed $length = 2 ]) : mixed
Parameters
$length : mixed = 2

normalize()

Normalize Token or remove it (if null is returned)

public normalize(Token $srcToken) : Token
Parameters
$srcToken : Token
Return values
Token

        
On this page

Search results