

When the SearchJob is executed, the results are returned as a SearchResults object. Transferring these form variables into the SearchJob is done in the DoSearchWeb method of the search_cs sample. The search form for the search_cs sample provides additional options for search features such as fuzzy searching, boolean searching, etc.: To search the index for a user-entered search request, set up a SearchJob with the search request and the index to be searched: IndexJob.ExecuteInThreadWeb Searching the index Attach the Spider's DataSource to the IndexJob Make data source to crawl the web sites The following is from the SpiderDemo sample included with the dtSearch Engine: To index a web site using the API, you would use the HttpDataSource class. and add the starting URL for the web site(s) to be indexed.įor more information on building indexes of web sites, see How to index a web site with the dtSearch Spider and How to use dtSearch Web with dynamically-generated content. Click OK, then click Yes when the indexer asks if you want to add documents to the index.ĥ. Caching text in the index makes display of hits-in-context in search results much faster.Ĥ.

Enter a name for the index and check these two boxes under Indexing options: Cache document text in the index and Cache documents in the index. Click Start > Programs > dtSearch Developer > dtSearch Indexer.ģ. To build the index using the dtSearch Indexer,ġ. To index the web site, you can either use the dtSearch Desktop Indexer or you can use the. NET Standard API is included with the dtSearch Engine in the examples\NetStd\WebDemo, and is online here. You can also try the demo here.Īnother sample using ASP.NET Core/5/6 and the dtSearch Engine's.

Complete sample code for the interface described here is included with the dtSearch Engine in the examples\asp.net4 folder, in C# and VB.NET. This article will explain how to implement a web-Based search interface for a web site using the dtSearch Engine's.
