diff --git a/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php b/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php
index 38fcd6189a7f6fa1f67db7cc79d341d34c97d5af..64962445294aaabeb5aca02cc09b4cb28ff1618c 100644
--- a/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php
+++ b/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php
@@ -500,7 +500,7 @@ class IndexSearchRepository
             $queryBuilder->andWhere(
                 $queryBuilder->expr()->in(
                     'ISEC.page_id',
-                    $queryBuilder->createNamedParameter($idList, Connection::PARAM_INT_ARRAY)
+                    $queryBuilder->quoteArrayBasedValueListToIntegerList($idList)
                 )
             );
         }
@@ -965,9 +965,8 @@ class IndexSearchRepository
             ->where(
                 $queryBuilder->expr()->in(
                     'IP.phash',
-                    $queryBuilder->createNamedParameter(
-                        GeneralUtility::intExplode(',', $list, true),
-                        Connection::PARAM_INT_ARRAY
+                    $queryBuilder->quoteArrayBasedValueListToIntegerList(
+                        GeneralUtility::intExplode(',', $list, true)
                     )
                 ),
                 QueryHelper::stripLogicalOperatorPrefix($this->mediaTypeWhere()),
@@ -1044,10 +1043,7 @@ class IndexSearchRepository
             $queryBuilder->andWhere(
                 $queryBuilder->expr()->in(
                     'ISEC.page_id',
-                    $queryBuilder->createNamedParameter(
-                        array_unique(GeneralUtility::intExplode(',', implode(',', $pageIdList), true)),
-                        Connection::PARAM_INT_ARRAY
-                    )
+                    $queryBuilder->quoteArrayBasedValueListToIntegerList($pageIdList)
                 )
             );
         }