Knowledgebase Home Page  >  SearchUnit  >  Version 2 Articles
Search the Knowledge Base
How can I use Search for ASP.NET without Visual Studio (version 2)?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=162&catId=66

Options

Print this page
Email this to a friend

To use Search for ASP.NET without Visual Studio, the first thing to understand is there are two parts to this

1. Getting our DLLs and the search pages on to the server, and

2. Creating the index files which will be placed on the server - this will still be done with VS (the files are version independent).

Part 1.

The files in the attached (see bottom of this page) ZIP have been modified to not include codebehind.  Therefore they can be easily copied to IIS without any accompanying codebehind DLLs.

i) Copy the SearchBasic folder to c:\inetpub\wwwroot.  If you wish to copy to a different location, modify IndexDirectory="c:\inetpub\wwwroot\SearchBasic\IndexDirectory" in "SearchResults.aspx" accordingly.

ii) Copy these DLLs to your bin folder from the Search install folder. 

Keyoti.Text.LemmaGenerator.dll
Keyoti.SearchEngine.Core.dll
Keyoti.SearchEngine.License.dll
Keyoti.SearchEngine.Web.dll

The easiest way is a bin under the wwwroot folder, however you can change this by setting up "SearchBasic" virtual folder as an application in IIS and using a web.config file inside SearchBasic - see http://msdn2.microsoft.com/EN-US/library/kza1yk3a(VS.71).aspx for more info on this.

If you're experience with the GAC, you can of course use the DLLs direct from the GAC, with no BIN folder, to do this you will need to modify each page's assembly register directive to include the full version of the DLL (see the user guide in help).

iii) The IndexDirectory included in the zip contains the index from our demo project, so you should be able to run searches immediately.  Visit http://localhost/SearchBasic to try.  Of course the URLs given as results will probably fail unless you're running our demos at the same time.


Part 2.

The actual index files are usually created in Visual Studio or the Search Pro Admin Web app., they can also be created programmatically.  You have a few options for doing this.

i) If you can access Visual Studio (any edition) - follow our Quickstart page (under the product program group in the Windows start menu) on how to do this.

ii) Use the Admin Web App. that comes as part of Search Pro.  The admin web app. is a separate installable application, which can create index files.

iii) In the demo projects folder there is a programmatic example which creates a Windows Form for crawling/building.  Use this Windows Forms application to create the index files (which will be located under the demo folder).

Once the index files have been created, copy them to c:\inetpub\wwwroot\SearchBasic\IndexDirectory, and you should now have fully functioning search.


Related Questions:

Attachments: