IWordBreaker::Init method (indexsrv.h)
Initializes the IWordBreaker implementation and indicates the mode in which the component operates.
Syntax
HRESULT Init(
[in] BOOL fQuery,
[in] ULONG ulMaxTokenSize,
[out] BOOL *pfLicense
);
Parameters
[in] fQuery
Type: BOOL
Flag that indicates the mode in which a word breaker operates. TRUE indicates query-time word breaking. FALSE indicates index-time word breaking.
[in] ulMaxTokenSize
Type: ULONG
Maximum number of characters in words that are added to the IWordSink. Words that exceed this limit are truncated.
[out] pfLicense
Type: BOOL*
Pointer to a variable that receives a flag indicating whether there are license restrictions for this IWordBreaker implementation. TRUE indicates that the stemmer is restricted to authorized use only. FALSE indicates that this IWordBreaker implementation can be used freely.
Return value
Type: HRESULT
This method can return one of these values.
Return code | Description |
---|---|
|
Successful completion. |
|
One of the components for word breaking cannot be located. |
|
Invalid argument. The pfLicense parameter is NULL. |
|
Other errors. |
Remarks
The functionality of the word breaker is similar in both index creation and querying. Differences are language dependent. If pfLicense is TRUE, and if you want more information about possible license restrictions, call the IWordBreaker::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 |