mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-09 06:17:52 +00:00
25 lines
622 B
Plaintext
25 lines
622 B
Plaintext
source hostPage
|
|
{
|
|
type = mysql
|
|
|
|
sql_host = localhost
|
|
sql_user =
|
|
sql_pass =
|
|
sql_db =
|
|
sql_port = 3306 # optional, default is 3306
|
|
|
|
sql_query = \
|
|
SELECT hostPage.hostPageId, hostPage.metaTitle, hostPage.metaDescription, hostPage.metaKeywords, hostPage.data, hostPage.uri, host.name \
|
|
FROM hostPage \
|
|
JOIN host ON (host.hostId = hostPage.hostId) \
|
|
WHERE host.status = '1' AND hostPage.httpCode = 200
|
|
|
|
sql_attr_uint = hostPageId
|
|
}
|
|
|
|
index hostPage
|
|
{
|
|
source = hostPage
|
|
morphology = stem_enru, stem_cz, stem_ar
|
|
path = /var/lib/sphinxsearch/data/hostPage
|
|
} |