Close
dtSearch .NET Standard API 2023.02
SearchFilter.AddIndex Method

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

public int AddIndex( string indexPath );
Parameters
Description
indexPath
Full path to the index to add to the filter.

Integer to be used as whichIndex in the Select methods. 

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 index that has previously been added to the SearchFilter.