You are here: C++ Support Classes > dtSearch Namespace > Classes > DSearchJob Class > DSearchJob::SetWantResultsAsFilter Method
DSearchJob::SetWantResultsAsFilter Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
DSearchJob::SetWantResultsAsFilter Method

Request a search filter containing the results of this search (see dtsSearchFilter)

Syntax
C++
void SetWantResultsAsFilter(int v);
Parameters
Description
int v
If true, a search filter will be created based on the results of the search.

Each document retrieved in the search will be selected in the filter. After the search, call DetachOutputSearchFilter to obtain the filter. The DSearchJob destructor will delete any search filter that is not detached by a call to DetachOutputSearchFilter

See dtsSearchFilter for information on search filters.