Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
dtsSearchFilter::addIndex Method
dtsSearchFilter Class | dtsSearchFilter Class | Send Feedback

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);
Parameters
Parameters 
Description 
const char * indexPath 
Path to the index, exactly as it is provided in dtsSearchJob.indexesToSearch 
Returns

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.

Class
Links
You are here: C++ API > Classes > dtsSearchFilter Class > dtsSearchFilter::addIndex Method
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.