<commit_before>{* $Id$ *}

{if $prefs.feature_search_stats eq 'y'}
	{remarksbox type="tip" title="{tr}Tip{/tr}"}
		{tr}Search stats{/tr} {tr}can be seen on page{/tr} <a class='rbox-link' target='tikihelp' href='tiki-search_stats.php'>{tr}Search stats{/tr}</a> {tr}in Admin menu{/tr}
	{/remarksbox}
{/if}


<form action="tiki-admin.php?page=search" method="post">
	<input type="hidden" name="searchprefs" />
	<div class="heading input_submit_container" style="text-align: right">
		<input type="submit" value="{tr}Change preferences{/tr}" />
	</div>

	{tabset name=admin_search}
		{tab name="{tr}General Settings{/tr}"}
			<fieldset>
				<legend>
					{tr}Unified Search{/tr}
				</legend>

				{preference name=feature_search visible="always"}
				<div class="adminoptionboxchild" id="feature_search_childcontainer">				
					{preference name="unified_incremental_update"}
					{preference name="unified_engine"}
					<div class="adminoptionboxchild unified_engine_childcontainer lucene">
						{preference name="unified_lucene_location"}
						{preference name="unified_lucene_highlight"}
						{preference name="unified_lucene_max_result"}
					</div>

					{preference name=unified_forum_deepindexing}
					
					{preference name=unified_tokenize_version_numbers}

					{preference name=unified_field_weight}
					{preference name=unified_default_content}
					{preference name=unified_user_cache}

					{preference name=unified_cached_formatters}

					<h4>{tr}Index maintenance{/tr}</h4>
					<ul>
						<li><a href="tiki-admin.php?page=search&amp;optimize=now">{tr}Optimize{/tr}</a></li>
						<li>
							<a href="tiki-admin.php?page=search&amp;rebuild=now">{tr}Rebuild Index{/tr}</a>
							{if !empty($stat)}
								{remarksbox type='feedback' title="{tr}Indexation{/tr}"}
									<ul>
										{foreach from=$stat key=what item=nb}
											<li>{$what|escape}: {$nb|escape}</li>
										{/foreach}
									</ul>
								{/remarksbox}
							{/if}
						</li>
					</ul>
				</div>
			</fieldset>
			<fieldset>
				<legend>
					{tr}MySQL Search (legacy){/tr}{help url="Search"}
				</legend>
				{preference name=feature_search_fulltext}
				<div class="adminoptionboxchild" id="feature_search_fulltext_childcontainer">				
					{preference name=feature_referer_highlight}
					{preference name=search_parsed_snippet}
					{preference name=feature_search_stats}

					{preference name=feature_search_show_forbidden_obj}
					{preference name=feature_search_show_forbidden_cat}<commit_msg>[FIX] prefs: Add missing search prefs to admin panel (could do with some hints & help maybe?)<commit_after>{* $Id$ *}

{if $prefs.feature_search_stats eq 'y'}
	{remarksbox type="tip" title="{tr}Tip{/tr}"}
		{tr}Search stats{/tr} {tr}can be seen on page{/tr} <a class='rbox-link' target='tikihelp' href='tiki-search_stats.php'>{tr}Search stats{/tr}</a> {tr}in Admin menu{/tr}
	{/remarksbox}
{/if}


<form action="tiki-admin.php?page=search" method="post">
	<input type="hidden" name="searchprefs" />
	<div class="heading input_submit_container" style="text-align: right">
		<input type="submit" value="{tr}Change preferences{/tr}" />
	</div>

	{tabset name=admin_search}
		{tab name="{tr}General Settings{/tr}"}
			<fieldset>
				<legend>
					{tr}Unified Search{/tr}
				</legend>

				{preference name=feature_search visible="always"}
				<div class="adminoptionboxchild" id="feature_search_childcontainer">				
					{preference name="unified_incremental_update"}
					{preference name="unified_engine"}
					<div class="adminoptionboxchild unified_engine_childcontainer lucene">
						{preference name="unified_lucene_location"}
						{preference name="unified_lucene_highlight"}
						{preference name="unified_lucene_max_result"}
					</div>

					{preference name=unified_forum_deepindexing}
					
					{preference name=unified_tokenize_version_numbers}

					{preference name=unified_field_weight}
					{preference name=unified_default_content}
					{preference name=unified_user_cache}

					{preference name=unified_cached_formatters}

					{preference name=search_refresh_index_mode}
					{preference name=search_refresh_rate}
					{preference name=search_min_wordlength}
					{preference name=search_max_syllwords}
					{preference name=search_syll_age}
					{preference name=search_lru_purge_rate}
					{preference name=search_lru_length}

					<h4>{tr}Index maintenance{/tr}</h4>
					<ul>
						<li><a href="tiki-admin.php?page=search&amp;optimize=now">{tr}Optimize{/tr}</a></li>
						<li>
							<a href="tiki-admin.php?page=search&amp;rebuild=now">{tr}Rebuild Index{/tr}</a>
							{if !empty($stat)}
								{remarksbox type='feedback' title="{tr}Indexation{/tr}"}
									<ul>
										{foreach from=$stat key=what item=nb}
											<li>{$what|escape}: {$nb|escape}</li>
										{/foreach}
									</ul>
								{/remarksbox}
							{/if}
						</li>
					</ul>
				</div>
			</fieldset>
			<fieldset>
				<legend>
					{tr}MySQL Search (legacy){/tr}{help url="Search"}
				</legend>
				{preference name=feature_search_fulltext}
				<div class="adminoptionboxchild" id="feature_search_fulltext_childcontainer">				
					{preference name=feature_referer_highlight}
					{preference name=search_parsed_snippet}
					{preference name=feature_search_stats}

					{preference name=feature_search_show_forbidden_obj}
					{preference name=feature_search_show_forbidden_cat}
{'fraction_non_alphanumeric': 0.14521207631042785, 'fraction_numerical': 0.0007408779403593258, 'mean_word_length': 4.187319884726225, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '4650360', 'n_tokens_mistral': 2384, 'n_tokens_neox': 1849, 'n_words': 300}