Skip to content

Commit

Permalink
[BUGFIX] Fix number of search terms in backend module
Browse files Browse the repository at this point in the history
because of a wrong query that leads to a too high number
  • Loading branch information
einpraegsam committed Nov 8, 2024
1 parent 14824d9 commit 2e09e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/SearchRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SearchRepository extends AbstractRepository
public function findCombinedBySearchIdentifier(FilterDto $filter): array
{
$connection = DatabaseUtility::getConnectionForTable(Search::TABLE_NAME);
$sql = 'select count(*) count, searchterm from ' . Search::TABLE_NAME . ' s'
$sql = 'select count(distinct s.uid) count, searchterm from ' . Search::TABLE_NAME . ' s'
. ' left join ' . Pagevisit::TABLE_NAME . ' pv on s.pagevisit = pv.uid'
. ' left join ' . Visitor::TABLE_NAME . ' v on s.visitor = v.uid'
. ' left join ' . Categoryscoring::TABLE_NAME . ' cs on cs.visitor = v.uid'
Expand Down

0 comments on commit 2e09e4b

Please sign in to comment.