Class FinderIndexerStemmer

Description

Stemmer base class for the Finder indexer package.

  • abstract:
  • since: 2.5

Located in /administrator/components/com_finder/helpers/indexer/stemmer.php (line 19)


	
			
Direct descendents
Class Description
FinderIndexerStemmerSnowball Snowball stemmer class for the Finder indexer package.
FinderIndexerStemmerPorter_En Porter English stemmer class for the Finder indexer package.
Variable Summary
array $cache
Method Summary
static FinderIndexerStemmer getInstance (string $adapter)
string stem (string $token, string $lang)
Variables
array $cache = array() (line 27)

An internal cache of stemmed tokens.

  • since: 2.5
  • access: public
Methods
static method getInstance (line 39)

Method to get a stemmer, creating it if necessary.

  • return: A FinderIndexerStemmer instance.
  • throws: Exception on invalid stemmer.
  • since: 2.5
  • access: public
static FinderIndexerStemmer getInstance (string $adapter)
  • string $adapter: The type of stemmer to load.
stem (line 86)

Method to stem a token and return the root.

  • return: The root token.
  • abstract:
  • since: 2.5
  • access: public
string stem (string $token, string $lang)
  • string $token: The token to stem.
  • string $lang: The language of the token.

Redefined in descendants as:

Documentation generated on Mon, 25 Jun 2012 13:59:47 -0500 by phpDocumentor 1.4.4