You are here: C++ API > Classes > dtsSearchFilter Class > dtsSearchFilter::addIndex Method
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.

int addIndex(const char * indexPath);
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.

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