File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -58,19 +58,18 @@ public function __construct(array $body)
58
58
$ this ->offset = $ body ['offset ' ];
59
59
$ this ->limit = $ body ['limit ' ];
60
60
$ this ->estimatedTotalHits = $ body ['estimatedTotalHits ' ];
61
- $ this ->hitsCount = \count ($ body ['hits ' ]);
62
61
} else {
63
62
$ this ->numberedPagination = true ;
64
63
65
64
$ this ->hitsPerPage = $ body ['hitsPerPage ' ];
66
65
$ this ->page = $ body ['page ' ];
67
66
$ this ->totalPages = $ body ['totalPages ' ];
68
67
$ this ->totalHits = $ body ['totalHits ' ];
69
- $ this ->hitsCount = $ body ['totalHits ' ];
70
68
}
71
69
72
70
$ this ->semanticHitCount = $ body ['semanticHitCount ' ] ?? 0 ;
73
71
$ this ->hits = $ body ['hits ' ] ?? [];
72
+ $ this ->hitsCount = \count ($ body ['hits ' ]);
74
73
$ this ->processingTimeMs = $ body ['processingTimeMs ' ];
75
74
$ this ->query = $ body ['query ' ];
76
75
$ this ->facetDistribution = $ body ['facetDistribution ' ] ?? [];
You can’t perform that action at this time.
0 commit comments