mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
fix paths
This commit is contained in:
parent
b6082d6eec
commit
55e48ce37f
3 changed files with 1 additions and 1 deletions
4
example/environment/crontab
Normal file
4
example/environment/crontab
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
@reboot searchd
|
||||
@reboot indexer --all --rotate
|
||||
|
||||
* * * * * indexer magnet --rotate
|
||||
52
example/environment/sphinx.conf
Normal file
52
example/environment/sphinx.conf
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
source yggtracker
|
||||
{
|
||||
type = mysql
|
||||
|
||||
sql_port = 3306
|
||||
sql_host = localhost
|
||||
sql_user =
|
||||
sql_pass =
|
||||
sql_db =
|
||||
}
|
||||
|
||||
source magnet : yggtracker
|
||||
{
|
||||
sql_query = \
|
||||
SELECT `magnet`.`timeAdded`, \
|
||||
`magnet`.`timeUpdated`, \
|
||||
`magnet`.`magnetId`, \
|
||||
`magnet`.`metaTitle`, \
|
||||
`magnet`.`metaDescription`, \
|
||||
`magnet`.`dn`, \
|
||||
(SELECT GROUP_CONCAT(DISTINCT `keywordTopic`.`value`) \
|
||||
FROM `keywordTopic` \
|
||||
JOIN `magnetToKeywordTopic` ON (`magnetToKeywordTopic`.`magnetId` = `magnet`.`magnetId`) \
|
||||
WHERE `keywordTopic`.`keywordTopicId` = `magnetToKeywordTopic`.`keywordTopicId`) AS `keywords`, \
|
||||
(SELECT GROUP_CONCAT(DISTINCT `magnetComment`.`value`) \
|
||||
FROM `magnetComment` \
|
||||
WHERE `magnetComment`.`magnetId` = `magnet`.`magnetId`) AS `comments` \
|
||||
FROM `magnet`\
|
||||
|
||||
sql_attr_uint = magnetId
|
||||
}
|
||||
|
||||
index magnet
|
||||
{
|
||||
source = magnet
|
||||
path = /var/lib/sphinxsearch/data/magnet
|
||||
|
||||
morphology = stem_cz, stem_ar, lemmatize_de_all, lemmatize_ru_all, lemmatize_en_all # stem_enru
|
||||
|
||||
min_word_len = 2
|
||||
min_prefix_len = 2
|
||||
|
||||
html_strip = 1
|
||||
|
||||
index_exact_words = 1
|
||||
}
|
||||
|
||||
indexer
|
||||
{
|
||||
mem_limit = 256M
|
||||
lemmatizer_cache = 256M
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue