<commit_before><?php

if ($GLOBALS['Session']->hasAccountLevel('User')) {
    SearchRequestHandler::$searchClasses['User'] = array(
		'fields' => array(
			array(
				'field' => 'FirstName'
				,'method' => 'like'
			), array(
				'field' => 'LastName'
				,'method' => 'like'
				), array(
				'field' => 'Username'
				,'method' => 'like'
			), array(
				'field' => 'FullName'
				,'method' => 'sql'
				,'sql' => 'CONCAT(FirstName," ",LastName) = "%s"'
			)
		)
		,'conditions' => array('AccountLevel != "Deleted"')
	);
}

SearchRequestHandler::$searchClasses['Emergence\CMS\Page'] = array(
	'fields' => array(
		'Title'
		,array(
			'field' => 'Handle'
			,'method' => 'like'
		)
	)
	,'conditions' => array('Class' => 'Emergence\CMS\Page', 'Status' => 'Published', 'Published IS NULL OR Published <= CURRENT_TIMESTAMP')
);

SearchRequestHandler::$searchClasses['Emergence\CMS\BlogPost'] = array(
	'fields' => array(
		'Title'
		,array(
			'field' => 'Handle'
			,'method' => 'like'
		)
	)
	,'conditions' => array('Class' => 'Emergence\CMS\BlogPost', 'Status' => 'Published', 'Published IS NULL OR Published <= CURRENT_TIMESTAMP')
);

SearchRequestHandler::$searchClasses['Emergence\Events\Event'] = array(
	'fields' => array(
		'Title'
		,'Description'
		,array(
			'field' => 'Handle'
			,'method' => 'like'
		)
	)
	,'conditions' => array('Status = "Published"')
);

SearchRequestHandler::$searchClasses['Slate\Courses\Section'] = array(
	'fields' => array(
		'Title'
		,array(
			'field' => 'Code'
			,'method' => 'like'
		)
		,array(
			'field' => 'Handle'
			,'method' => 'like'
		)
	)
	,'conditions' => array('Status = "Live"')
);<commit_msg>search config tweaks<commit_after><?php

if ($GLOBALS['Session']->hasAccountLevel('User')) {
    SearchRequestHandler::$searchClasses['User'] = array(
		'fields' => array(
			array(
				'field' => 'FirstName'
				,'method' => 'like'
			), array(
				'field' => 'LastName'
				,'method' => 'like'
				), array(
				'field' => 'Username'
				,'method' => 'like'
			), array(
				'field' => 'FullName'
				,'method' => 'sql'
				,'sql' => 'CONCAT(FirstName," ",LastName) = "%s"'
			)
		)
		,'conditions' => array('AccountLevel != "Deleted"')
	);
}

SearchRequestHandler::$searchClasses['Slate\Courses\Section'] = array(
    'fields' => array(
		'Title'
		,array(
			'field' => 'Code'
			,'method' => 'like'
		)
		,array(
			'field' => 'Handle'
			,'method' => 'like'
		)
	)
	,'conditions' => array('Status = "Live"')
);

SearchRequestHandler::$searchClasses['Emergence\CMS\Page'] = array(
	'fields' => array(
		'Title'
		,array(
			'field' => 'Handle'
			,'method' => 'like'
		)
	)
	,'conditions' => array('Class' => 'Emergence\CMS\Page', 'Status' => 'Published', 'Published IS NULL OR Published <= CURRENT_TIMESTAMP')
);

SearchRequestHandler::$searchClasses['Emergence\CMS\BlogPost'] = array(
	'fields' => array(
		'Title'
		,array(
			'field' => 'Handle'
			,'method' => 'like'
		)
	)
	,'conditions' => array('Class' => 'Emergence\CMS\BlogPost', 'Status' => 'Published', 'Published IS NULL OR Published <= CURRENT_TIMESTAMP')
);

SearchRequestHandler::$searchClasses['Emergence\Events\Event'] = array(
	'fields' => array(
		'Title'
		,'Description'
		,array(
			'field' => 'Handle'
			,'method' => 'like'
		)
	)
	,'conditions' => array('Status = "Published"')
);
{'fraction_non_alphanumeric': 0.22631261315630657, 'fraction_numerical': 0.0, 'mean_word_length': 4.053353658536586, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6070848', 'n_tokens_mistral': 1362, 'n_tokens_neox': 1183, 'n_words': 218}