MasterKaos
Programmer
The Full-Text search feature in mySQL has this rather annoying "feature" of returning an empty set when the search string matches more than 50% of the rows in a table, as it deems such a search not to be relevant enough.
I was wonderring if anyone knows if there is a way of telling if this has happened? I mean how do I know if the set is empty because there were too many results rather than too few?
I am implementing a search feature for my web page using this, and it would be nice to tell users either "too many matches, refine your search" OR "no matches, please try again". It's not much good telling them "well, gee there might be too many matches, or there might not be any, I don't really know what you should do next..."
If the answer is no, can anyone suggest a fairly basic PHP search function, that searches one or two columns and returns a relevance ranked result set? Boolean would be nice but not a must-have.
Thanks!
I was wonderring if anyone knows if there is a way of telling if this has happened? I mean how do I know if the set is empty because there were too many results rather than too few?
I am implementing a search feature for my web page using this, and it would be nice to tell users either "too many matches, refine your search" OR "no matches, please try again". It's not much good telling them "well, gee there might be too many matches, or there might not be any, I don't really know what you should do next..."
If the answer is no, can anyone suggest a fairly basic PHP search function, that searches one or two columns and returns a relevance ranked result set? Boolean would be nice but not a must-have.
Thanks!