You are here: C++ API > Classes > dtsSearchFilter Class > dtsSearchFilter::selectItemsBySearch Method
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchFilter::selectItemsBySearch Method
void selectItemsBySearch(int iIndex, dtsSearchJob& searchJob, int fSelected);
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.

Copyright (c) 1995-2023 dtSearch Corp. All rights reserved.