Bug #6705 FT search returns no result when () + and * operators are used together
Submitted: 18 Nov 2004 21:11 Modified: 22 Nov 2004 17:41
Reporter: jocelyn fournier (Silver Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: MyISAM storage engine Severity:S3 (Non-critical)
Version:4.1.7 OS:Linux (Linux)
Assigned to: Sergei Golubchik CPU Architecture:Any

[18 Nov 2004 21:11] jocelyn fournier
Description:
Hi,

FT search returns no results when a combination of () + and * operators are used.

Regards,
  Jocelyn

How to repeat:
DROP TABLE IF EXISTS t1;

CREATE TABLE `t1` (
  `ft_col` text NOT NULL,
  FULLTEXT KEY (`ft_col`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1

INSERT INTO t1 VALUES ('test1 ftbug1'),('test2 ftbug2');

SELECT * FROM t1 WHERE MATCH (ft_col) AGAINST ('+test* +ftbug*' IN BOOLEAN MODE);

+--------------+
| ft_col       |
+--------------+
| test1 ftbug1 |
| test2 ftbug2 |
+--------------+
2 rows in set (0.00 sec)

SELECT * FROM t1 WHERE MATCH (ft_col) AGAINST ('(+test1 +ftbug1)' IN BOOLEAN MODE);

+--------------+
| ft_col       |
+--------------+
| test1 ftbug1 |
+--------------+
1 row in set (0.00 sec)

SELECT * FROM t1 WHERE MATCH (ft_col) AGAINST ('(+test* +ftbug*)' IN BOOLEAN MODE);

Empty set (0.00 sec)
[18 Nov 2004 22:13] MySQL Verification Team
Verified with 4.1.8-debug-log
[22 Nov 2004 17:41] Sergei Golubchik
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

fixed in 4.1.8
[15 Dec 2004 20:08] Ulterior
I noticed very strange ft behaviour using ft search using more than 2 +keyword* parameters. I will report as soon as I have reproduced it