Hi,
I am trying to implement Search using $search. I want to get the total record count upon each query. But in case if there are more than 5000 records, no matter what I do, I never get the total records requested. If I apply a filter that returns less than 5000 then I get the correct figure. But if the records are less then I get -1 because I cannot use $top with $count.
I cannot use the RetrieveTotalRecordCount function because that will return the count of ALL records of an entity.
Is there a way I can get a correct count of the records that are returned by the query.
Regards.
Adeel.