By default, when you create a text configuration object, a built-in term breaker is used for data associated with that text configuration object. To have data instead pass through an external term breaker library, you specify the library and its entry point function using the ALTER TEXT CONFIGURATION statement, similar to the following:
ALTER TEXT CONFIGURATION my_text_config TERM BREAKER GENERIC EXTERNAL NAME 'my_termbreaker@termbreaker'
This example tells the database server to use the my_termbreaker entry point function in the termbreaker library to obtain a term breaker instance to use when building, updating, or querying a text index associated with the my_text_config text configuration object, when parsing the text configuration object's stoplist, and when processing input to the sa_char_terms system procedure. The interface for a term breaker is described here: a_word_source interface.
See also: ALTER TEXT CONFIGURATION statement.
Discuss this page in DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|