FinderIndexerHelper::stem
Method to get the base word of a token. This method uses the public {@link FinderIndexerHelper::$stemmer} object if it is set. If no stemmer is set, the original token is returned.
Signature
public function stem(string
$token,
string
$langĀ )
Parameters
-
$token
- The token to stem.
-
$lang
- The language of the token.
Returns
- string
- The root token.