Close
dtSearch Engine API for Java
IndexCache.closeIndex Method

Close an index specified by a filename pattern.

Syntax
Java
public boolean closeIndex(String indexPath);
Parameters
Description
String indexPath
A string, which can include the wildcards * and ?, identifying the index(es) to close

There is no requirement to explicitly close indexes in an IndexCache. The closeIndex() function can be used to address situations where it is important to ensure that a particular index is closed without the need to destroy the whole IndexCache.