Skip to content

Commit

Permalink
Merge branch 'release-1.5.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 21, 2021
2 parents 465e848 + adfdb1c commit 2d94fcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"oat-sa/generis": ">=14.2.0",
"oat-sa/tao-core": ">=v48.27.3",
"oat-sa/extension-tao-delivery": ">=14.10.1",
"oat-sa/extension-tao-outcomeui": ">=10.4.0"
"oat-sa/extension-tao-outcomeui": ">=10.4.0",
"oat-sa/lib-tao-elasticsearch": ">=2.2.2"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 1 addition & 6 deletions model/Index/Report/IndexSummarizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use oat\oatbox\service\ConfigurableService;
use oat\tao\elasticsearch\ElasticSearch;
use oat\tao\elasticsearch\IndexerInterface;
use oat\tao\elasticsearch\Query;
use oat\tao\model\search\SearchProxy;
use oat\taoAdvancedSearch\model\DeliveryResult\Repository\DeliveryResultRepository;
use oat\taoAdvancedSearch\model\DeliveryResult\Repository\DeliveryResultRepositoryInterface;
Expand Down Expand Up @@ -74,11 +73,7 @@ private function getTotalResults(string $index): int
/** @var ElasticSearch $advancedSearch */
$advancedSearch = $this->getSearchProxy()->getAdvancedSearch(); //@TODO Remove direct call for ElasticSearch

$query = new Query($index);
$query->addCondition('*');
$query->setLimit(1);

return $advancedSearch->search($query)->getTotalCount();
return $advancedSearch->countDocuments($index);
}

private function createReport(
Expand Down

0 comments on commit 2d94fcc

Please sign in to comment.