Hi Guys,
I'm pretty new to MySql and I have a question regarding FullText Searching. I've implemented a search that searches for jobs based on keywords. I have a table called Jobs with columns such as JobTitle, Job Description, AdditionalInformation etc and I have created a full text index on these columns.
I am trying to now implement a search, basically when a user types keywords into an ASP.Net form text box then the results will be returned so I have something like this in my SQL
MATCH (j.JobTitle, j.JobDescription, j.AdditionalInformation) AGAINST (keywords IN BOOLEAN MODE)
keywords is a variable passed in to the stored procedure which contains a space delimited string of the keywords entered.
This works fine when I enter keywords in the box but if no keywords are entered I want all jobs returned but I get nothing. It seems that AGAINST doesn't work for NULL or Empty String values. Am I missing some operator to tell the fulltext search to accept nulls?
Thanks in advance.
I'm pretty new to MySql and I have a question regarding FullText Searching. I've implemented a search that searches for jobs based on keywords. I have a table called Jobs with columns such as JobTitle, Job Description, AdditionalInformation etc and I have created a full text index on these columns.
I am trying to now implement a search, basically when a user types keywords into an ASP.Net form text box then the results will be returned so I have something like this in my SQL
MATCH (j.JobTitle, j.JobDescription, j.AdditionalInformation) AGAINST (keywords IN BOOLEAN MODE)
keywords is a variable passed in to the stored procedure which contains a space delimited string of the keywords entered.
This works fine when I enter keywords in the box but if no keywords are entered I want all jobs returned but I get nothing. It seems that AGAINST doesn't work for NULL or Empty String values. Am I missing some operator to tell the fulltext search to accept nulls?
Thanks in advance.