mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 00:17:02 +02:00
attachment search
This commit is contained in:
@ -66,7 +66,6 @@ source tag : base
|
||||
|
||||
}
|
||||
|
||||
|
||||
source note : base
|
||||
{
|
||||
sql_query_pre = SET NAMES utf8
|
||||
@ -77,6 +76,16 @@ source note : base
|
||||
|
||||
}
|
||||
|
||||
source att : base
|
||||
{
|
||||
|
||||
sql_query_pre = SET NAMES utf8
|
||||
sql_query = select a.id as aid, m.id as mid, a.name AS aname, a.size, REPLACE(REPLACE(m.`from`, '@', 'X'), '.', 'X') as `from`, REPLACE(REPLACE((select group_concat(rcpt.`to` ORDER BY `to` ASC SEPARATOR ' ') from rcpt where rcpt.id=mid group by rcpt.id), '@', 'X'), '.', 'X') as `to` from attachment a, metadata m where m.piler_id=a.piler_id
|
||||
|
||||
sql_attr_uint = size
|
||||
sql_attr_uint = mid
|
||||
}
|
||||
|
||||
|
||||
index main1
|
||||
{
|
||||
@ -177,6 +186,19 @@ index note1
|
||||
}
|
||||
|
||||
|
||||
index att1
|
||||
{
|
||||
source = att
|
||||
path = /var/piler/sphinx/att1
|
||||
docinfo = extern
|
||||
dict = keywords
|
||||
min_prefix_len = 6
|
||||
min_word_len = 1
|
||||
ngram_len = 1
|
||||
ngram_chars = U+1100..U+2FA1F
|
||||
}
|
||||
|
||||
|
||||
indexer
|
||||
{
|
||||
mem_limit = 256M
|
||||
|
Reference in New Issue
Block a user