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-05-08 22:29:32 +00:00
|
|
|
SELECT hostPage.hostPageId, \
|
|
|
|
hostPage.rank, \
|
|
|
|
hostPage.uri, \
|
|
|
|
host.name, \
|
|
|
|
(SELECT CONCAT_WS(' ', hostPageDescription.metaTitle, \
|
|
|
|
hostPageDescription.metaDescription, \
|
|
|
|
hostPageDescription.metaKeywords) \
|
|
|
|
FROM hostPageDescription \
|
|
|
|
WHERE hostPageDescription.hostPageId = hostPage.hostPageId \
|
2023-05-09 05:19:49 +00:00
|
|
|
ORDER BY hostPageDescription.timeUpdated DESC, hostPageDescription.timeAdded DESC \
|
2023-05-08 22:29:32 +00:00
|
|
|
LIMIT 1) AS pageDescription \
|
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, \
|
2023-05-08 22:29:32 +00:00
|
|
|
(SELECT CONCAT_WS(' ', hostImageDescription.alt, hostImageDescription.title) \
|
2023-05-03 22:34:12 +00:00
|
|
|
FROM hostImageDescription \
|
2023-05-08 22:39:56 +00:00
|
|
|
WHERE hostImageDescription.hostImageId = hostImage.hostImageId \
|
2023-05-09 05:19:49 +00:00
|
|
|
ORDER BY hostImageDescription.timeUpdated DESC, hostImageDescription.timeAdded DESC \
|
|
|
|
LIMIT 1) AS imageDescription \
|
2023-05-03 22:34:12 +00:00
|
|
|
FROM hostImage \
|
|
|
|
JOIN host ON (host.hostId = hostImage.hostId) \
|
2023-05-08 22:29:32 +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
|
|
|
}
|