summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-11-11 13:23:39 +0100
committerSergei Golubchik <serg@mariadb.org>2020-12-10 08:45:20 +0100
commite189faf0b3f28465a7bfb8dbb87958cb64a38be6 (patch)
tree728e4269fb6c2558bc87f70146dd953c666eb5e7
parentaeb561cf3e87539ba76b631b493e211f8c71f7f8 (diff)
downloadmariadb-git-e189faf0b3f28465a7bfb8dbb87958cb64a38be6.tar.gz
document that a fulltext parser plugin can replace mysql_add_word callback
-rw-r--r--include/mysql/plugin_ftparser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mysql/plugin_ftparser.h b/include/mysql/plugin_ftparser.h
index 99bb6b24f3f..8db8712926f 100644
--- a/include/mysql/plugin_ftparser.h
+++ b/include/mysql/plugin_ftparser.h
@@ -158,7 +158,9 @@ typedef struct st_mysql_ftparser_boolean_info
the word to MySQL full-text index. When parsing a search query,
this function will add the new word to the list of words to search
for. The boolean_info argument can be NULL for all cases except
- when mode is MYSQL_FTPARSER_FULL_BOOLEAN_INFO.
+ when mode is MYSQL_FTPARSER_FULL_BOOLEAN_INFO. A plugin can replace this
+ callback to post-process every parsed word before passing it to the original
+ mysql_add_word function.
ftparser_state: A generic pointer. The plugin can set it to point
to information to be used internally for its own purposes.