class SearchIndexHelperServiceImpl implements SearchIndexHelperService {

    protected boolean validateSearchIndexSize(String indexName, int expectedIndexSize)
    {
        final long indexSize = indexFunctionsDao.getNumberOfTypesInIndex(indexName);

        boolean result = true;
        if (indexSize != expectedIndexSize)
        {
            LOGGER.error("Index validation failed, expected index size {}, does not equal actual index size {}.", expectedIndexSize, indexSize);
            result = false;
        }

        return result;
    }

}