IWordBreaker interface (indexsrv.h)

Parses text and identifies individual words and phrases. This interface is a language-specific language resource component. It is used in background processes and must be optimized for both throughput and minimal use of resources.

Inheritance

The IWordBreaker interface inherits from the IUnknown interface. IWordBreaker also has these types of members:

Methods

The IWordBreaker interface has these methods.

 
IWordBreaker::BreakText

Parses text to identify words and phrases and provides the results to the IWordSink and IPhraseSink objects.
IWordBreaker::ComposePhrase

Not supported. (IWordBreaker.ComposePhrase)
IWordBreaker::GetLicenseToUse

Gets a pointer to the license information for this implementation of the IWordBreaker interface.
IWordBreaker::Init

Initializes the IWordBreaker implementation and indicates the mode in which the component operates.

Remarks

When to Implement

Implement this interface to create a custom word breaker for a language. Windows Search calls the methods of this interface when it builds content indexes and runs queries.

Word breaker components for Windows Search run in the Local Security context. They should be written to manage buffers and the stack correctly. All string copies must have explicit checks to guard against buffer overruns. You should always verify the allocated size of the buffer and test the size of the data against the size of the buffer.

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