Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Case Insensitive Full Text Search

Status
Not open for further replies.

9727604

Programmer
Jul 18, 2003
23
CA
Hi,

I am writing a search page that searches job postings and returns results based on a keyword entered. When the following query is run I get 4 results

SELECT p.postingId, p.jobTitle, p.industry, p.city, p.numPositions, p.status, p.ce, p.ae, p.cb, p.dateCreated, p.appDeadline, p.lastModified FROM postings AS p WHERE MATCH (p.jobTitle, p.division, p.industry, p.referenceNo, p.region, p.jobDescription, p.minimumEducation, p.mandatoryQualifications, p.additionalQualifications, p.otherInformation) AGAINST ('Coordinator' IN BOOLEAN MODE)

When this query is run I get 0 results
SELECT p.postingId, p.jobTitle, p.industry, p.city, p.numPositions, p.status, p.ce, p.ae, p.cb, p.dateCreated, p.appDeadline, p.lastModified FROM postings AS p WHERE MATCH (p.jobTitle, p.division, p.industry, p.referenceNo, p.region, p.jobDescription, p.minimumEducation, p.mandatoryQualifications, p.additionalQualifications, p.otherInformation) AGAINST ('coordinator' IN BOOLEAN MODE)

The only difference between the two is the keyword is in a different case. I've read the Full Text specifications and they say that the search should be insensitive. The collation on the postings table (the only table in the query) is utf8_general_ci and this should also mean case insensitive searches. I've been scratching my head at this for hours but can't figure it out, can anyone help me please?

Thanks in advance
 
i'm not completely sure, but i think it's the IN BOOLEAN MODE that is causing the case sensitivity

try taking that part off

r937.com | rudy.ca
Buy my new book Simply SQL from Amazon
 
It would be helpful if you could specify which version of MySQL you are using, which storage engine and which operating system.

That way someone might be able to reproduce the symptoms of your problem.

I use Full Text searches quite a lot and have not experienced this problem.

Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top