Auto Complete

The SearchBox control can provide an AJAX based preview of available search terms as the user types a query.

.NET 4

Set the AutoCompleteQuery property of the SearchResult control to True and AutoCompleteQueryIndexDirectory to the index directory to be used.

Usually performed automatically: If the controls are opened in the VS designer, then the web.config will be amended with the required code. If this doesn't occur, then the web.config must be opened and the following changes made:

IIS 6

Add inside the system.web section.
<httpHandlers>
       <add verb="*" path="Keyoti.SearchEngine.Web.CallBackHandler.ashx" 
		 type="Keyoti.SearchEngine.Web.CallBackHandler,Keyoti4.SearchEngine.Web, 
			Version=2010.?.?.?, Culture=neutral, PublicKeyToken=58d9fd2e9ec4dc0e"/>
</httpHandlers>
where 2010.?.?.? should be replaced with the version number of the Keyoti4.SearchEngine.Web DLL.

IIS 7

Add inside the system.webServer section.
<staticContent>
	<mimeMap mimeType="text/html" fileExtension=".ashx"/>
</staticContent>
<handlers>
	<add name="Keyoti_SearchEngine_Web_CallBackHandler_ashx" verb="*" preCondition="integratedMode" 
	path="Keyoti.SearchEngine.Web.CallBackHandler.ashx" 
	type="Keyoti.SearchEngine.Web.CallBackHandler, Keyoti4.SearchEngine.Web,
	Version=2010.?.?.?, Culture=neutral, PublicKeyToken=58d9fd2e9ec4dc0e"/>
</handlers>
where 2010.?.?.? should be replaced with the version number of the Keyoti4.SearchEngine.Web DLL.

.NET 2, 3, 3.5

Set the AutoCompleteQuery property of the SearchResult control to True and AutoCompleteQueryIndexDirectory to the index directory to be used.

Usually performed automatically: If the controls are opened in the VS designer, then the web.config will be amended with the required code. If this doesn't occur, then the web.config must be opened and the following changes made:

IIS 6

Add inside the system.web section.
<httpHandlers>
       <add verb="*" path="Keyoti.SearchEngine.Web.CallBackHandler.ashx" 
		 type="Keyoti.SearchEngine.Web.CallBackHandler,Keyoti2.SearchEngine.Web, 
			Version=2010.?.?.?, Culture=neutral, PublicKeyToken=58d9fd2e9ec4dc0e"/>
</httpHandlers>
where 2010.?.?.? should be replaced with the version number of the Keyoti2.SearchEngine.Web DLL.

IIS 7

Add inside the system.webServer section.
<staticContent>
	<mimeMap mimeType="text/html" fileExtension=".ashx"/>
</staticContent>
<handlers>
	<add name="Keyoti_SearchEngine_Web_CallBackHandler_ashx" verb="*" preCondition="integratedMode" 
	path="Keyoti.SearchEngine.Web.CallBackHandler.ashx" 
	type="Keyoti.SearchEngine.Web.CallBackHandler, Keyoti2.SearchEngine.Web,
	Version=2010.?.?.?, Culture=neutral, PublicKeyToken=58d9fd2e9ec4dc0e"/>
</handlers>
where 2010.?.?.? should be replaced with the version number of the Keyoti2.SearchEngine.Web DLL.

.NET 1.1

Set the AutoCompleteQuery property of the SearchResult control to True and AutoCompleteQueryIndexDirectory to the index directory to be used.

IIS 6

Add inside the system.web section.
    <httpHandlers>
       <add verb="*" path="Keyoti.SearchEngine.Web.CallBackHandler.ashx" 
		type="Keyoti.SearchEngine.Web.CallBackHandler,Keyoti.SearchEngine.Web, 
			Version=2010.?.?.?, Culture=neutral, PublicKeyToken=58d9fd2e9ec4dc0e"/>
    </httpHandlers>
where 2010.?.?.? should be replaced with the version number of the Keyoti.SearchEngine.Web DLL.

IIS 7


Add inside the system.webServer section.
<staticContent>
	<mimeMap mimeType="text/html" fileExtension=".ashx"/>
</staticContent>
<handlers>
	<add name="Keyoti_SearchEngine_Web_CallBackHandler_ashx" verb="*" preCondition="integratedMode" 
	path="Keyoti.SearchEngine.Web.CallBackHandler.ashx" 
	type="Keyoti.SearchEngine.Web.CallBackHandler, Keyoti.SearchEngine.Web,
	Version=2010.?.?.?, Culture=neutral, PublicKeyToken=58d9fd2e9ec4dc0e"/>
</handlers>
where 2010.?.?.? should be replaced with the version number of the Keyoti.SearchEngine.Web DLL.
Client side files
The installer automatically registers a virtual directory called Keyoti_SearchEngine_Web_Common which holds the necessary scripts. This is used by the AJAX features and needs to be present on the development and deployment machines.

AutoComplete Members of Note

AutoCompleteQuery
Whether to provide auto-complete suggestions to the user as they type in the query text box.

AutoCompleteQueryFailSilent
Whether to show warning messages about errors - advised to set to false for development.

AutoCompleteQueryIndexDirectory
Location of the Index Directory to use for auto complete. Default is '~/IndexDirectory'.

AutoCompleteQueryMaxSuggestions
The maximum number of auto complete suggestions to make.

AutoCompleteQueryRunSearchOnSelect
Whether to automatically run the search when the user selects an auto complete item from the list.

AutoCompleteQueryShowNumberofResults
Whether to list the predicted number of results for each auto complete suggestion - adds server load when true.