You are here: C++ API > Classes > dtsSearchFilter Class > dtsSearchFilter::selectItemsBySearch Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchFilter::selectItemsBySearch Method
Syntax
C++
void selectItemsBySearch(int iIndex, dtsSearchJob& searchJob, int fSelected);
Parameters
Description
int iIndex
The index containing these documents (identifier returned by addIndex)
dtsSearchJob& searchJob
The search to execute
int fSelected
Indicates whether the listed documents should be selected or not

Set the selection state of a set of document ids based on the results of a search. All documents retrieved by the search set up by searchJob will have their selection state changed to the state indicated by fSelected. 

*All* documents retrieved in the search are selected, regardless of the maxFilesToRetrieve value in the dtsSearchJob.