本文介绍了MySQL全文搜索三个或更少字母的单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



目前,如果我搜索类似于以下内容的文字但是,如果我在搜索字词后面追加通配符运算符*,那么我会得到结果。

p>

我还读到,您可以删除 my.ini 中的三个字限制,但我想知道是否有这是一个更好的方式。

解决方案

手册的这一部分可能会让您感兴趣: (引用它的一部分)

(您应该阅读该页面,了解更多信息,我没有复制 - 粘贴;-))

I'm trying to get my full text search (in boolean mode) to retrieve words with three letters or less.

Currently, if I search for something like "NBA", I don't get any results.

However, if I append the wild card operator "*" to the search term, I get results.

I also read that you could remove the three word limit in my.ini, but I'm wondering if there was a better way to do this on the fly.

解决方案

This section of the manual might interest you : 11.8.6. Fine-Tuning MySQL Full-Text Search (quoting a portion of it) :

(You should read that page, for more informations I didn't copy-paste ;-) )

这篇关于MySQL全文搜索三个或更少字母的单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 04:57