def test_track_total_hits_enabled(self):
        """Test track_total_hits parameter returns total hits count"""
        res = self.client.index(self.unstructured_text_index_name).search(
            "shirt",
            search_method="HYBRID",
            track_total_hits=True
        )
        self.assertIn("totalHits", res)
        self.assertIsInstance(res["totalHits"], int)
        self.assertGreater(res["totalHits"], 0)
Test track_total_hits parameter returns total hits count
tests/api_tests/v1/tests/api_tests/unstructured_index/test_facets.py