How to avoid the calculation for "hits.total" in search?