From 566d3b442ecc0cec0009749b58f71d581ff55e7d Mon Sep 17 00:00:00 2001
From: ghost <noreply@localhost>
Date: Wed, 10 May 2023 23:37:24 +0300
Subject: [PATCH] make mime details grouped

---
 config/sphinx.conf.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/sphinx.conf.txt b/config/sphinx.conf.txt
index a28f5f9..f30e56c 100644
--- a/config/sphinx.conf.txt
+++ b/config/sphinx.conf.txt
@@ -15,7 +15,7 @@ source hostPage : common
     SELECT `hostPage`.`hostPageId`, \
            `hostPage`.`uri`, \
            `host`.`name`, \
-           REGEXP_REPLACE(`hostPage`.`mime`, '^[A-z-]+/([A-z-]+).*', '$1') AS `mime`, \
+           REGEXP_REPLACE(`hostPage`.`mime`, '^([A-z-]+)/[A-z-]+.*', '$1') AS `mime`, \
           (SELECT SUM(`quantity`) FROM `hostPageToHostPage` \
            WHERE `hostPageToHostPage`.`hostPageIdTarget` = `hostPage`.`hostPageId` \
            AND   (SELECT `hostPageSource`.`hostId` FROM `hostPage` AS `hostPageSource` \