Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Adding SearchUnit with Nuget

SearchUnit

v7.0.1

Nuget Quick Start Guide

Having 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.6.1.16.827 -> 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.

Open the index manager tool

Select 'Import New Source', enter the start URL & click 'Import'.

Select Import New Source Import a Website Source

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'.

Add the SearchUnit JavaScript and CSS tags to the head of your page.

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.

<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>

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.

Run the web application (hit F5) and try a search!

Here a search was done for 'themselves'.

Search results page

Go further!

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.










About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.