added ratings collapse to index
finished date range queries