MySQL Forums
Forum List  »  Full-Text Search

boolean search returns different result with / without fulltext index
Posted by: Martin Feng
Date: July 23, 2006 08:01PM

I have a table having full text index built on 2 columns (COL_TITLE, COL_TEXT), around 570,000 rows.

When the full text index is disabled by 'alter table disable keys', query

SELECT COUNT(*) FROM TBL_PAPERS WHERE MATCH (COL_TITLE, COL_TEXT) AGAINST (@words IN BOOLEAN MODE);

returns 271.

where @words is a long phrase list:

"adventure racing" "archery" "aviation" "beachcombing" "biking" ...

total 1129 chracters. no full text boolean search operators.

When the full text index is enabled by 'alter table disable keys', the same query

return 20006.

Which result should I believe? I tried 3 times to enable / disable keys, and the result is same

------------------------------
My environment:

MySQL 5.0.22, installed from MySQL-server-standard-5.0.22-0.rhel4.i386.rpm and MySQL-Max-5.0.22-0.i386.rpm,
OS: CentOS 4.3
DB: CHARACTER SET utf8 COLLATE utf8_general_ci

Options: ReplyQuote


Subject
Views
Written By
Posted
boolean search returns different result with / without fulltext index
3306
July 23, 2006 08:01PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.