MySQL Forums
Forum List  »  General

Boolean full text search for items that contain "-"
Posted by: eric
Date: April 20, 2005 07:01AM

I have a database that stores our equipment part numbers in the format "53-SH1-U1-00".

I need to create a query that will search for this pattern in boolean mode.

I tried the following select statement:

SELECT * FROM rga WHERE ID>0 AND MATCH ( partno ) AGAINST ( '53-SH1-U1-00' IN BOOLEAN MODE )

It doesn't return any results.

I assume it has to do with the "-" characters in the search being treated as "not include in results".

How can I get around this problem?

Options: ReplyQuote


Subject
Written By
Posted
Boolean full text search for items that contain "-"
April 20, 2005 07:01AM


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.