In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to use full-text search under mysql+mybatis. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The first step is to click on the full-text search full text type index on your column that requires full-text search. Note that my example is that the column is of type longText.
The first step is to build the fulltext type index as follows
Select full text for index type
Step 2:
Verify whether full-text search sql works
Step 3:
I use the mybatis framework and change the automatically generated example condition settings and mapper.xml file contents
Page page = (Page) logMapper.selectByExample (tLogExample)
Finally, the sql statement generated by the mybatis framework basically uses the full-text search syntax.
Note that the premise of using the full-text search function in mysql is to establish a full text type index on the column to be searched.
Finally, the sql statement generated by the mybatis framework basically uses the full-text search syntax.
Select id, log_type, system_name, visit_time,message from t_log WHERE (MATCH (message) AGAINST ('* FA9X0D00000001*' IN BOOLEAN MODE))
Thank you for reading! This is the end of the article on "how to use full-text search under mysql+mybatis". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.