You are here:
Symbol Reference
>
dtSearch.Engine Namespace
>
Classes
>
SearchJob Class
Close
dtSearch .NET Standard API 2024.02
Contents
|
Index
|
Reference
|
Home
Example
SearchJob Class
// 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 ...
} }