Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
DSearchJob Class
Data Members | Classes | Legend | Members | Methods | OnFound Method | Send Feedback

Class wrapper around dtsSearchJob; provides access to a simplified version of the searching interface.

Class Hierarchy
class DSearchJob : public DJobBase;
File

dtsfc.h

Data Members
DSearchJob Class
Data Member 
Description 
Additional boolean conditions that a document must meet to be retrieved in a search. 
Filename filters specifying folders to be excluded from an unindexed search. 
Specify a relevance weight for hits that occur in listed fields (example: Subject:10,HtmlTitle:20) 
File conditions that a document must meet to be retrieved in a search. 
The FoldersToSearch, IncludeFilters, and ExcludeFilters specify files to be searched in an unindexed search. 
In an unindexed search, the directories or files to search. 
One or more indexes to be searched. 
If set to a filename, each file retrieved in the search will be written to this file. 
What you want to search for. 
Group
Methods
Method 
Description 
Requests termination of the job in progress. 
Requests immediate termination of the job in progress. 
Called to execute a job. 
Returns non-zero if the job failed 
Format all errors that occurred during execution as a single string, with line breaks separating the errors 
Returns the number of errors recorded during execution 
Returns a dtsErrorInfo with any errors that occurred during execution 
Returns true if the job has been cancelled 
Returns true if the job has started and is not yet done. 
Called while a job is executing every time the dtSearch Engine checks to see if the job has been cancelled. 
Called while a job is executing if an error is encountered, with the error code and message. 
Not used 
SetTimeout() causes a job to cancel automatically after the specified number of seconds 
Do not pump waiting windows messages during callbacks 
DSearchJob Class
Method 
Description 
Add a folder to the FoldersToSearch list. Append <+> to the folder name to specify that subfolders should also be searched. 
Add an index to the IndexesToSearch list. 
Attach a data source to the search job to be searched as part of an unindexed search. 
Resets the job to default values. 
Clear all search flags in the SearchJob 
Copy the output search filter and return it. 
Detach the output search filter and return it. 
Detach and return the search results generated by this search. 
Constructor 
Execute the search. 
Returns the level of fuzziness in this search 
Returns the maximum files this search can retrieve. 
Return the search results generated by this search. 
Get the value of a single search flag 
Get all SearchFlags that were set for this search job. 
Access the dtsSearchJob struct that DSearchJob wraps. 
Returns the total number of files that were retrieved in this search. 
Returns the total number of hits in all files retrieved in this search. 
This is the overview for the OnFound method overload. 
Called to update the status of a SearchJob 
Called when an unindexed search begins searching a file. 
This function will be called each time an index is searched. If several indexes are listed in IndexesToSearch, this function will be called once for each index. 
Request that a search automatically halt after more than a specified number of files have been retrieved 
Set up search to use an index cache 
After a search, DSearchJob will return a DSearchResults object that contains up to this many files. If more files were retrieved than the MaxFilesToRetrieve value, only the best-matching files will be returned. 
Apply a search filter to the search that can be used to exclude or permit specified documents to be returned in search results. 
Set one of the SearchFlags values for this search. 
Set all SearchFlags values for this search. 
Set UnindexedSearchFlags for this search 
Request a search filter containing the results of this search (see dtsSearchFilter
Prevents a found document from being included in search results. 
Legend
 
Method 
 
virtual 
 
abstract 
 
Data Member 
Links
You are here: C++ Support Classes > dtSearch Namespace > Classes > DSearchJob Class
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.