I think that changing the query to have % either side of the search text is not really the answer. As pointed out already this is very slow, does not scale and requires user training.
MySQL provides a special sort of index for solving this problem and it works very well. This does require extra indexes to be created and the SQL within the application has to be modified, but the result would be fantastic.
I am sure we all have a list of places where we would like this. My recent addition is the text within the body of Knowledge Base items so that I can find the right one.
For reference I have 250,000 emails indexed in a MySQL database and using this I can find all occurrences of "amy" in a few seconds.
The link below (not sure how to use this forum correctly) is to the MySQL documentation on full text indices.
MySQL provides a special sort of index for solving this problem and it works very well. This does require extra indexes to be created and the SQL within the application has to be modified, but the result would be fantastic.
I am sure we all have a list of places where we would like this. My recent addition is the text within the body of Knowledge Base items so that I can find the right one.
For reference I have 250,000 emails indexed in a MySQL database and using this I can find all occurrences of "amy" in a few seconds.
The link below (not sure how to use this forum correctly) is to the MySQL documentation on full text indices.
Comment