You are here: Symbol Reference > dtSearch.Engine Namespace > Classes > SearchJob Class
Close
dtSearch .NET Standard API 2024.02
Example
// Allocate SearchJob and SearchResults to store results using (dtSearch.Engine.SearchJob searchJob = new dtSearch.Engine.SearchJob()) using (SearchResults results = new SearchResults()) { searchJob.Request = searchRequest.Text; searchJob.IndexesToSearch.Add(indexPath.Text); searchJob.MaxFilesToRetrieve = 100; searchJob.SearchFlags = SearchFlags.dtsSearchDelayDocInfo; searchJob.Execute(results); searchJob.Execute(); if (searchJob.Errors.Count > 0) // ... display error messages ... else { // ... display search results ... } }
Copyright (c) 1998-2023 dtSearch Corp. All rights reserved.