Speed searching up a bit

Reuse ElasticSearch hits length via hits.total and cache it rahter than calculation length every iteration.
Merge pull request #900 from mikhailov/patch-2

Speed search result parsing