Elasticsearch's 'search_after' query helps you to achieve infinite scroll pagination, and I was getting an error due to incorrect mapping, which made me go crazy.
But things are working well now.
PS: Elasticsearch docs are trash, if I am being really honest