Added methods to get upper bound of contents for search module