MySQL 中文全文检索 ngram 处理停止词
MySQL 索引 全文检索 大约 394 字ngram 中文分词处理器
添加中文全文检索索引
ALTER TABLE post ADD FULLTEXT INDEX ft_index (title,content) WITH PARSER ngram;
处理停止词,在my.cnf
或my.ini
的[mysqld]
下配置
ngram_token_size=2
InnoDB 存储引擎
查看ngram
如何标记文本
SET GLOBAL innodb_ft_aux_table="z-blog/post";
SELECT
*
FROM
information_schema.innodb_ft_index_cache
ORDER BY doc_id , position;
参考文档
https://dev.mysql.com/doc/refman/5.7/en/fulltext-search-ngram.html
阅读 4059 · 发布于 2019-04-04
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
软考-系统架构设计师:E-R 模型阅读 1972
-
走进 Spring Boot 第二步之 SpringApplicaiton 构造函数阅读 3594
-
Vue mavonEditor 获取 HTML 代码阅读 1717
-
Spring Boot 使用 Java16 新特性 record 绑定配置文件属性阅读 286
-
Git OpenSSL errno 10054阅读 956
-
IDEA java: package is not visible阅读 2965
-
Spring Boot 设置配置文件读取路径阅读 509
-
Spring Boot 优雅停机阅读 479
-
软件-系统架构设计师:软件过程改进 - CMMI阅读 2475
-
Spring Boot OpenFeign 打印完整请求日志阅读 323