Nuget Quick Start GuideHaving installed SearchUnity Community edition via Nuget you can follow these simple steps to add search to your webform application. If you are using MVC, please follow the Nuget MVC quick start guide instead.
Installing via Nuget means that you will already have the necessary References, Scripts , Tools and Index Directory folder installed to your application. All that is left to do is import your documents, add two Tags and two Divs to your page.
Open the Index Manager Tool
To find the Index Manager tool, open your project's folder in File Explorer. Then navigate to;
packages -> Keyoti.SearchUnit.Community.188.8.131.527 -> tools
Open the file 'Keyoti4-Search-IndexManagerToolLauncher.EXE'
Enter the path to your project's Keyoti_Search_Index folder
From your Visual Studio project, open the Keyoti_Search_Index folder in File Explorer and copy the path to your clipboard. Paste the path to the Index Manager tool and click Open.
Select 'Import New Source', enter the start URL & click 'Import'.
If an error reports the page cannot be read, please check the URL or consult the user guide for help.
Once the import is complete close the Import window, select 'Optimize' and click 'Start Optimize'.
Open or create a new WebForm page within your application. To automatically add the tags, drag SearchUnit.js and SearchUnit.css from the Solution Explorer on to the page source. Alternatively copy and paste the tags as below to the head of your page.
<link href="Keyoti_SearchEngine_Web_Common/SearchUnit.css" rel="stylesheet" />
.NET 2 users must also add the following to all pages using SearchUnit (or set the variable from a common JS file).
Add the SearchUnit divs to your page.
sew_searchBoxControl is the search text box and button.
sew_searchResultControl is the search result control.
Run the web application (hit F5) and try a search!
Here a search was done for 'themselves'.
Now you're ready to explore more features in SearchUnit, please take a look at the 'Features' page in the Help documentation for more information on all that SearchUnit can do.
Copyright © 2002- Keyoti Inc.