modifications to pagination count and search_indexes