2023-05-03 22:34:12 +00:00
source common
2023-04-07 01:04:24 +00:00
{
type = mysql
sql_host = localhost
sql_user =
sql_pass =
sql_db =
sql_port = 3306 # optional, default is 3306
2023-05-03 22:34:12 +00:00
}
2023-04-07 01:04:24 +00:00
2023-05-03 22:34:12 +00:00
source hostPage : common
{
2023-04-07 01:04:24 +00:00
sql_query = \
2023-04-25 14:07:57 +00:00
SELECT hostPage.hostPageId, hostPage.rank, hostPage.metaTitle, hostPage.metaDescription, hostPage.metaKeywords, hostPage.data, hostPage.uri, host.name \
2023-04-08 15:22:53 +00:00
FROM hostPage \
JOIN host ON (host.hostId = hostPage.hostId) \
2023-05-06 05:45:37 +00:00
WHERE host.status = '1' AND hostPage.httpCode = 200 AND hostPage.timeBanned IS NULL
2023-04-07 01:04:24 +00:00
2023-04-25 14:07:57 +00:00
sql_attr_uint = rank
2023-04-07 01:04:24 +00:00
}
2023-05-03 22:34:12 +00:00
source hostImage : common
{
sql_query = \
SELECT hostImage.hostImageId, hostImage.rank, hostImage.uri, host.name, \
(SELECT GROUP_CONCAT(CONCAT_WS(' ', hostImageDescription.alt, hostImageDescription.title)) \
FROM hostImageDescription \
2023-05-04 01:20:20 +00:00
WHERE hostImageDescription.hostImageId = hostImage.hostImageId) AS imageDescription, \
2023-05-04 01:20:54 +00:00
(SELECT GROUP_CONCAT(CONCAT_WS(' ', hostPage.metaTitle, hostPage.metaDescription, hostPage.metaKeywords)) \
2023-05-04 01:20:20 +00:00
FROM hostPage \
WHERE hostPage.hostPageId IN (SELECT hostImageToHostPage.hostPageId FROM hostImageToHostPage WHERE hostImageToHostPage.hostImageId = hostImage.hostImageId)) AS pageDescription \
2023-05-03 22:34:12 +00:00
FROM hostImage \
JOIN host ON (host.hostId = hostImage.hostId) \
2023-05-06 05:45:37 +00:00
WHERE host.status = '1' AND hostImage.httpCode = 200 AND hostImage.timeBanned IS NULL
2023-05-03 22:34:12 +00:00
sql_attr_uint = rank
}
2023-04-07 01:04:24 +00:00
index hostPage
{
2023-04-25 13:10:44 +00:00
source = hostPage
morphology = stem_enru, stem_cz, stem_ar
path = /var/lib/sphinxsearch/data/hostPage
2023-05-03 22:34:12 +00:00
}
index hostImage
{
source = hostImage
morphology = stem_enru, stem_cz, stem_ar
path = /var/lib/sphinxsearch/data/hostImage
2023-04-07 01:04:24 +00:00
}