Export (0) Print
Expand All

IWordBreaker::Init method

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

fQuery [in]

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.

ulMaxTokenSize [in]

Type: ULONG

Maximum number of characters in words that are added to the IWordSink. Words that exceed this limit are truncated.

pfLicense [out]

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 codeDescription
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

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

Windows NT 4.0 Option Pack

Header

Indexsrv.h

See also

IWordBreaker

 

 

Community Additions

ADD
Show:
© 2014 Microsoft