由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - why this full-text search doenst work properly?
相关主题
MySQL全文搜索的问题大虾帮忙看看MySQL的设置
mysql索引/优化的一个问题关于mysql的问题
想练习SQL, 求建议Where to download free MySQL book
MySQL的InnoDB表不支持full text index 怎么办?Oracle新手请教一个问题
MYSQL 的LOG SIZE怎么在不停 变大How to query a tree
MySQL concat 使用一问ADO & DAO &SQL...Help...
MySQL Server is Open Source, even Backup extensions(ZZ)MySQL数据库用户管理求助
mysql rebuild index very slowMySQL question
相关话题的讨论汇总
话题: difficult话题: data话题: select话题: where话题: against
进入Database版参与讨论
1 (共1页)
L******r
发帖数: 199
1
there is a sentence "┬╗ Site Searches and Difficult " in a text field, but
when I use full-text search to search, it cant return the right result. why?
mysql> SELECT id,data FROM reviews WHERE MATCH (data) AGAINST ('difficult')&
& ma
tch(data) against ('and');
Empty set (0.00 sec)
mysql> SELECT id,data FROM reviews WHERE MATCH (data) AGAINST ('Difficult ')
&& m
atch(data) against ('and');
Empty set (0.00 sec)
mysql> SELECT id,data FROM reviews WHERE id=5039010;
+---------+-----------------------
y****r
发帖数: 17
2
is your table MYISAM?
why you put whitespace after Difficult in your 2nd query?

but
why?
)&
')

【在 L******r 的大作中提到】
: there is a sentence "┬╗ Site Searches and Difficult " in a text field, but
: when I use full-text search to search, it cant return the right result. why?
: mysql> SELECT id,data FROM reviews WHERE MATCH (data) AGAINST ('difficult')&
: & ma
: tch(data) against ('and');
: Empty set (0.00 sec)
: mysql> SELECT id,data FROM reviews WHERE MATCH (data) AGAINST ('Difficult ')
: && m
: atch(data) against ('and');
: Empty set (0.00 sec)

L******r
发帖数: 199
3
how do I know if the table is myisam?

difficult'
Difficult

【在 y****r 的大作中提到】
: is your table MYISAM?
: why you put whitespace after Difficult in your 2nd query?
:
: but
: why?
: )&
: ')

L******r
发帖数: 199
4
well.
I used
select * from reviews where ((data like '% and$%')||(data like '% and %')||(
data like '%^and %')) && ((data like '% difficult%$')||(data like '%
difficult %')||(data like '%^difficult %'));
seems OK, right?

difficult'
Difficult

【在 y****r 的大作中提到】
: is your table MYISAM?
: why you put whitespace after Difficult in your 2nd query?
:
: but
: why?
: )&
: ')

1 (共1页)
进入Database版参与讨论
相关主题
MySQL questionMYSQL 的LOG SIZE怎么在不停 变大
求助:sql server 2000, 这句话怎么写?MySQL concat 使用一问
问个查询的问题MySQL Server is Open Source, even Backup extensions(ZZ)
问个SQL的问题mysql rebuild index very slow
MySQL全文搜索的问题大虾帮忙看看MySQL的设置
mysql索引/优化的一个问题关于mysql的问题
想练习SQL, 求建议Where to download free MySQL book
MySQL的InnoDB表不支持full text index 怎么办?Oracle新手请教一个问题
相关话题的讨论汇总
话题: difficult话题: data话题: select话题: where话题: against