Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » SQL Anywhere Server - SQL Usage » Query and modify data » Full text search


Advanced: API for external full text libraries

The following steps need to be completed to create and use a prefilter or term breaker external library with text indexes:

  • Implement the SQL Anywhere C/C++ interfaces.

  • Create a dynamically loadable library by compiling and linking the code written in the above step.

  • Create the text configuration object in the database and then modify it to specify the entry point function in the external library for prefilter and/or term breaker.

    The entry point functions are used to obtain the prefilter and term breaker objects to be used while inserting/deleting text index entries when underlying documents (column values) are modified. In the case of an external term breaker library, the entry point function is also used to parse queries over the text indexes that use the term breaker.

a_server_context structure
a_init_pre_filter structure
a_text_source interface
a_init_term_breaker structure
a_term_breaker_for enumeration
a_word_source interface
a_term structure
extpf_use_new_api entry point function (prefilters)
exttb_use_new_api entry point function (term breakers)
extfn_post_load_library global entry point function
extfn_pre_unload_library global entry point function
Prefilter entry point function
Term breaker entry point function