Setup Auto Complete

What is Auto Complete?

  • Auto Complete is a built-in BigFish function whereby the site Search component will attempt to complete the word or phrase being entered
  • For example:
  • Auto Complete
  • BigFish uses the integration with the Apache SOLR open-source solution to accomplish this

Setup Auto Complete

  • The Search component is a piece of content within BigFish
  • The seeded data will typically create a styled Search Box with the auto-complete feature enabled
  • The key to the Auto Complete activisation is a special tag in the SI_SEARCH content component
  • Admin Content Site Info SI_SEARCH

<script type="text/javascript">
function clearIt(what)
{
if(what.value == what.defaultValue) what.value = '';
}
function setIt(what)
{
if(what.value == '') what.value = what.defaultValue;
}
</script>

<form id="frmSearchForm" onsubmit="return submitSearchForm(document.frmSearchForm);" action="siteSearch" 
	name="frmSearchForm" method="get">
        
	<fieldset class="formstyle" title="Search this site...">
            
	<div id="searchContainer" class="targetMobile">

	<div id="searchField">
		<input type="text" value="${SEARCH_DEFAULT_TEXT!""}" name="searchText" id="searchText" 
		onblur="setIt(this)" onfocus="clearIt(this)" autocomplete="off" />
	</div>

	<div id="searchButton">
		<input type="submit" class="searchSubmit" value="" />
	</div>
            
	</div>

</fieldset>

<div class="searchAutoComplete" id="searchAutoComplete"></div>

</form>

Back to Top

Built by Solveda