@@ -207,6 +207,7 @@ class Hook_search_cns_members extends FieldsSearchHook
require_lang('cns');
$indexes=collapse_2d_complexity('i_fields','i_name',$GLOBALS['FORUM_DB']->query_select('db_meta_indices',array('i_fields','i_name'),array('i_table'=>'f_member_custom_fields'),'ORDER BY i_name'));
// ^ the ORDER BY above causes fulltext indexes to be given precedence in $indexes for any field_x
// Calculate our where clause (search)
if($author!=''){
@@ -231,15 +232,15 @@ class Hook_search_cns_members extends FieldsSearchHook
$non_trans_fields++;
}
}
$index_issue=(get_param_integer('force_like',0)==0)&&($non_trans_fields>16);// MySQL limit for fulltext index querying. We'll therefore not throw EVERY searchable field into the search query (only core ones, and ones we're explicitly filtering on)
if($index_issue){
$boolean_search=true;
list($content_where)=build_content_where($content,$boolean_search,$boolean_operator);// Rebuilding $content_where from what was passed to this function
}
$reduced_ft_searching=((get_param_integer('force_like',0)==0)&&($non_trans_fields>16));// MySQL limit for fulltext index querying. We'll therefore not throw EVERY searchable field into the search query (only core ones, and ones we're explicitly filtering on)