For those who want to search the whole title (not just beginning)
you can simply add "%". to the search query in the code:
function node_quick_find_autocomplete($delta = 0, $string = '') {
$settings = variable_get('node_quick_find_'. $delta, array());
$matches = array();
if ($string) {
$string = "%" . drupal_strtolower($string);
Comments
Comment #1
derjochenmeyer commentedHere is a patch that fixes a permissions problem and also adds results to the quickfind box that contain the query string (not just begin with the string).
#416586: Add db_rewrite_sql to respect users permissions for search results
Comment #2
nicholasthompsonCheers guys...
There is a reason Node Quick Find doesn't do a double-end search... Indexes. Searching with Indexes is blazing fast. Searching without is (or can be) very slow.
From: http://dev.mysql.com/doc/refman/5.0/en/mysql-indexes.html
Comment #3
vako commentedThanks for the module and explanation Nicholas. But at least give an option to the user to choose between the two, with a warning that the non-indexed version will be slower.