Please follow these simple steps to quickly setup SearchUnit in a web application. If you have any questions at all please contact us at support@keyoti.com
|
Step 2. Create a new folder to store the index files;
Next Step 3. Open the Index Manager Tool from the Start Menu and enter the path to your index directory. The Index Manager Tool can be found under the Start Menu;
Start Menu -> All Programs -> SearchUnit -> Index Manager Tool
Next Step 4. 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'. Next Step 5. Copy the SearchUnit scripts folder to your project;
Next Step 6. Add the SearchUnit JS and CSS tags to the head of your page. 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.
<script
src="Keyoti_SearchEngine_Web_Common/SearchUnit.js"></script>
<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).
<script
type="text/javascript">keyotiSearch.useWCFService=false;</script>
Next Step 7. Add the SearchUnit divs to your page.
<div
id="sew_searchBoxControl"></div>
<div id="sew_searchResultControl"></div> sew_searchBoxControl is the search text box and button. sew_searchResultControl is the search result control. Next Step 8. Run the web application (hit F5) and try a search! Here a search was done for 'chicken' in the SearchUnit demo recipes project. Go further!Now you're ready to explore more features in SearchUnit, please take a look at the 'Features' page in the help for more information on all that SearchUnit can do. |