attachment search

This commit is contained in:
SJ
2015-04-27 14:30:08 +02:00
parent b4805171a2
commit 0e3f2836fe
3 changed files with 52 additions and 2 deletions

View File

@ -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