mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-01-23 15:30:00 +01:00
added a note feature to index
This commit is contained in:
parent
dc97eaee9e
commit
a67d799382
@ -22,6 +22,7 @@ source main
|
||||
|
||||
}
|
||||
|
||||
|
||||
source delta
|
||||
{
|
||||
type = mysql
|
||||
@ -47,7 +48,6 @@ source delta
|
||||
}
|
||||
|
||||
|
||||
|
||||
source tag
|
||||
{
|
||||
type = mysql
|
||||
@ -57,7 +57,23 @@ source tag
|
||||
sql_pass = piler
|
||||
|
||||
sql_query_pre = SET NAMES utf8
|
||||
sql_query = SELECT id, `uid`, `tag` FROM `tag`
|
||||
sql_query = SELECT `id`, `uid`, `tag` FROM `tag`
|
||||
|
||||
sql_attr_uint = uid
|
||||
|
||||
}
|
||||
|
||||
|
||||
source note
|
||||
{
|
||||
type = mysql
|
||||
sql_host = localhost
|
||||
sql_db = piler
|
||||
sql_user = piler
|
||||
sql_pass = piler
|
||||
|
||||
sql_query_pre = SET NAMES utf8
|
||||
sql_query = SELECT `id`, `uid`, `note` FROM `note`
|
||||
|
||||
sql_attr_uint = uid
|
||||
|
||||
@ -102,6 +118,18 @@ index tag1
|
||||
}
|
||||
|
||||
|
||||
index note1
|
||||
{
|
||||
source = note
|
||||
path = /var/piler/sphinx/note1
|
||||
docinfo = extern
|
||||
charset_type = utf-8
|
||||
enable_star = 1
|
||||
min_prefix_len = 6
|
||||
min_word_len = 1
|
||||
}
|
||||
|
||||
|
||||
indexer
|
||||
{
|
||||
mem_limit = 64M
|
||||
|
Loading…
x
Reference in New Issue
Block a user