IStemmer::Init method (indexsrv.h)

Initializes the stemmer.

Syntax

HRESULT Init(
  [in]  ULONG ulMaxTokenSize,
  [out] BOOL  *pfLicense
);

Parameters

[in] ulMaxTokenSize

Type: ULONG

Maximum number of characters for words that are added to the IWordFormSink object. Words that exceed this limit may be truncated.

[out] pfLicense

Type: BOOL

Pointer to an output variable that receives a flag that indicates whether there are license restrictions for this IStemmer implementation. TRUE indicates that the stemmer is restricted to authorized use only. FALSE indicates that this IStemmer implementation can be used freely.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK
Successful completion.
LANGUAGE_E_DATABASE_NOT_FOUND
One of the components for word breaking cannot be located.
E_INVALIDARG
Invalid argument. The pfLicense parameter is NULL.
E_FAIL
Unsuccessful completion.

Remarks

You must initialize the stemmer. The IStemmer::Init method must be called before any other method of IStemmer. If pfLicense is TRUE, and you want more information about possible license restrictions, call the IStemmer::GetLicenseToUse method.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header indexsrv.h
Redistributable Windows NT 4.0 Option Pack

See also

IStemmer