You are here: C++ API > Classes > dtsSearchFilter Class > dtsSearchFilter::addIndex Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchFilter::addIndex Method

Add an index to the filter, returning an integer that can be used to identify the index in the selection functions.

Syntax
C++
int addIndex(const char * indexPath);
Parameters
Description
const char * indexPath
Path to the index, exactly as it is provided in dtsSearchJob.indexesToSearch

Integer identifying the index in this search filter. If the index is already present in the search filter, the index is not added a second time, and the identifier for the existing instance of the index is returned. Therefore, addIndex() can be used to get the identifier for an existing index.