
// connect to the database
if(@!$modxDBConn = mysql_connect($database_server, $database_user, $database_password)) {
die("<h2>Failed to create the database connection!</h2>. Please run the MODx <a href='../install'>install utility</a>");
} else {
mysql_select_db($dbase);
@mysql_query("{$database_connection_method} {$database_connection_charset}");
}// connect to the database
if(@!$modxDBConn = mysql_connect($database_server, $database_user, $database_password)) {
die("<h2>Failed to create the database connection!</h2>. Please run the MODx <a href='../install'>install utility</a>");
} else {
mysql_select_db($dbase);
MYSQL_QUERY('SET NAMES utf8',$modxDBConn);
MYSQL_QUERY('SET CHARACTER SET utf8',$modxDBConn);
MYSQL_QUERY("SET SESSION collation_connection = 'utf8_general_ci'",$modxDBConn);
}

Quote from: mrhaw at Nov 10, 2008, 09:29 AM
AjaxSearch searches the source content, not the parsed output which is presented to the users when viewing pages.
Right, like I said, it searches the source content, not the parsed output you see when the page is rendered. That is what is stored in the db, and so what the db queries that do the AjaxSearching see is that source content, i.e. [[GetField... ]] and [~[*id*]~] and other stuff...
Ok, but both GetField and [~id~] are from source. In the output its the ouput (alias name etc.)