Speed search result parsing

Reuse ElasticSearch hits length via hits.total and cache it rahter than calculation length every iteration. It impacts performance on large data set.