From 5b1be3ac1f1d621f59a2f5219b7b1a1208482c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 21 Feb 2020 09:23:14 +0100 Subject: [PATCH] Disable fulltext search for the time being --- .../Domain/Repository/AbstractRepository.php | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/AbstractRepository.php b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/AbstractRepository.php index 33e53872..15b3fea8 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/AbstractRepository.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/AbstractRepository.php @@ -280,23 +280,23 @@ abstract class AbstractRepository extends \TYPO3\CMS\Extbase\Persistence\Reposit $this->addTransportationFilterConditions($query, $filterSettings); // Default fulltext search in case autocompletion has not been used - if ((int) $filterSettings->getDestinationUid() === 0 && !empty($filterSettings->getDestinationName())) { - $query - ->andWhere($query->expr()->orX( - $query->expr()->like('LOWER(date.country_name) COLLATE utf8_bin',':destination'), - $query->expr()->like('LOWER(date.country_keywords) COLLATE utf8_bin', ':destination'), - $query->expr()->like('LOWER(date.region_name) COLLATE utf8_bin', ':destination'), - $query->expr()->like('LOWER(date.region_keywords) COLLATE utf8_bin', ':destination'), - $query->expr()->like('LOWER(date.city_name) COLLATE utf8_bin', ':destination'), - $query->expr()->like('LOWER(date.city_keywords) COLLATE utf8_bin', ':destination'), - $query->expr()->like('LOWER(date.hotel_name) COLLATE utf8_bin', ':destination'), - $query->expr()->like('LOWER(date.hotel_keywords) COLLATE utf8_bin', ':destination'), - $query->expr()->like('LOWER(date.product_name) COLLATE utf8_bin', ':destination'), - $query->expr()->like('LOWER(date.product_keywords) COLLATE utf8_bin', ':destination') - )) - ->setParameter('destination', '%' . mb_strtolower($filterSettings->getDestinationName()) . '%') - ; - } +// if ((int) $filterSettings->getDestinationUid() === 0 && !empty($filterSettings->getDestinationName())) { +// $query +// ->andWhere($query->expr()->orX( +// $query->expr()->like('LOWER(date.country_name) COLLATE utf8_bin',':destination'), +// $query->expr()->like('LOWER(date.country_keywords) COLLATE utf8_bin', ':destination'), +// $query->expr()->like('LOWER(date.region_name) COLLATE utf8_bin', ':destination'), +// $query->expr()->like('LOWER(date.region_keywords) COLLATE utf8_bin', ':destination'), +// $query->expr()->like('LOWER(date.city_name) COLLATE utf8_bin', ':destination'), +// $query->expr()->like('LOWER(date.city_keywords) COLLATE utf8_bin', ':destination'), +// $query->expr()->like('LOWER(date.hotel_name) COLLATE utf8_bin', ':destination'), +// $query->expr()->like('LOWER(date.hotel_keywords) COLLATE utf8_bin', ':destination'), +// $query->expr()->like('LOWER(date.product_name) COLLATE utf8_bin', ':destination'), +// $query->expr()->like('LOWER(date.product_keywords) COLLATE utf8_bin', ':destination') +// )) +// ->setParameter('destination', '%' . mb_strtolower($filterSettings->getDestinationName()) . '%') +// ; +// } // Product if ((int) $filterSettings->getProductUid() > 0) {