Close
dtSearch Text Retrieval Engine Programmer's Reference
dtssGetWordBreaker Function

dtssGetWordBreaker provides a way to call the dtSearch Engine's internal word breaker.

File: dts_la.h

Syntax
C++
__declspec(dllexport) void dtssGetWordBreaker(dtsLanguageAnalyzerInterface& la);

dtssGetWordBreaker returns an implementation of the Language Analyzer interface that uses the dtSearch Engine's internal word breaker. For sample code demonstrating how to use dtssGetWordBreaker to apply the word breaker to blocks of text, see the WordBreak sample application. 

If an external language analyzer is in use, the interface returned from dtssGetWordBreaker will call that language analyzer rather than using the dtSearch Engine's internal word breaker. Therefore, the interface returned from dtssGetWordBreaker should not be used within a language analyzer. Instead, if you are implementing a language analyzer and want to let the default word breaker handle a block of text, use dtsLaBlockWasSkipped to skip a segment of text, or just return false from analyze() to skip all text passed in the call.