Total Hits in elastic Search prepareSearch() behaves in an inconsistent manner

Just set size to 10000.
BTW you probably need only one shard.