Fixed #1070 (Clear search index for deletedb and syncdb command)