doCheck

Actually perform the index check

Return

0 iff the index is clean, 1 otherwise

Parameters

opts

The options to use for this check