2023-04-07 01:04:24 +00:00
|
|
|
source hostPage
|
|
|
|
{
|
|
|
|
type = mysql
|
|
|
|
|
|
|
|
sql_host = localhost
|
|
|
|
sql_user =
|
|
|
|
sql_pass =
|
|
|
|
sql_db =
|
|
|
|
sql_port = 3306 # optional, default is 3306
|
|
|
|
|
|
|
|
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-04-08 15:23:48 +00:00
|
|
|
WHERE host.status = '1' AND hostPage.httpCode = 200
|
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
|
|
|
}
|
|
|
|
|
|
|
|
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-04-07 01:04:24 +00:00
|
|
|
}
|