Incorrect Aggregation count vs Search Query results

When performing Aggregation on a query the count is mismatching with results coming from a simple search query.

The query used in Aggregation is same as the Search query.

Please provide more details as well as an example. The description of the problem is currently very vague.