Adding rest_total_hits_as_int to php-client search() method

Hi How do i add rest_total_hits_as_int=true to search() method in php-client? i see in documentation below, it's mentioned in msearch method, but not in search. can we add rest_total_hits_as_int to search?

looks like we can just pass in the parameter and it works
'rest_total_hits_as_int' => true,

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.