mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:40:13 +01:00
added folder support for sphinx
This commit is contained in:
parent
33f0a88670
commit
1620f0b50f
@ -11,13 +11,14 @@ source main
|
|||||||
sql_pass = piler
|
sql_pass = piler
|
||||||
|
|
||||||
sql_query_pre = SET NAMES utf8
|
sql_query_pre = SET NAMES utf8
|
||||||
sql_query = SELECT id, `from`, `to`, `fromdomain`, `todomain`, `subject`, `arrived`, `sent`, `body`, `size`, `direction`, `attachments`, `attachment_types` FROM sph_index \
|
sql_query = SELECT id, `from`, `to`, `fromdomain`, `todomain`, `subject`, `arrived`, `sent`, `body`, `size`, `direction`, `folder`, `attachments`, `attachment_types` FROM sph_index \
|
||||||
WHERE id<=( SELECT max_doc_id FROM sph_counter WHERE counter_id=1 )
|
WHERE id<=( SELECT max_doc_id FROM sph_counter WHERE counter_id=1 )
|
||||||
|
|
||||||
sql_attr_uint = size
|
sql_attr_uint = size
|
||||||
sql_attr_uint = arrived
|
sql_attr_uint = arrived
|
||||||
sql_attr_uint = sent
|
sql_attr_uint = sent
|
||||||
sql_attr_uint = direction
|
sql_attr_uint = direction
|
||||||
|
sql_attr_uint = folder
|
||||||
sql_attr_uint = attachments
|
sql_attr_uint = attachments
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -34,13 +35,14 @@ source delta
|
|||||||
sql_query_pre = SET NAMES utf8
|
sql_query_pre = SET NAMES utf8
|
||||||
sql_query_pre = REPLACE INTO sph_counter SELECT 1, MAX(id) FROM sph_index
|
sql_query_pre = REPLACE INTO sph_counter SELECT 1, MAX(id) FROM sph_index
|
||||||
sql_query_post_index = DELETE FROM sph_index WHERE id<=(SELECT max_doc_id FROM sph_counter WHERE counter_id=1)
|
sql_query_post_index = DELETE FROM sph_index WHERE id<=(SELECT max_doc_id FROM sph_counter WHERE counter_id=1)
|
||||||
sql_query = SELECT id, `from`, `to`, `fromdomain`, `todomain`, `subject`, `arrived`, `sent`, `body`, `size`, `direction`, `attachments`, `attachment_types` FROM sph_index \
|
sql_query = SELECT id, `from`, `to`, `fromdomain`, `todomain`, `subject`, `arrived`, `sent`, `body`, `size`, `direction`, `folder`, `attachments`, `attachment_types` FROM sph_index \
|
||||||
WHERE id <= (SELECT max_doc_id FROM sph_counter WHERE counter_id=1)
|
WHERE id <= (SELECT max_doc_id FROM sph_counter WHERE counter_id=1)
|
||||||
|
|
||||||
sql_attr_uint = size
|
sql_attr_uint = size
|
||||||
sql_attr_uint = arrived
|
sql_attr_uint = arrived
|
||||||
sql_attr_uint = sent
|
sql_attr_uint = sent
|
||||||
sql_attr_uint = direction
|
sql_attr_uint = direction
|
||||||
|
sql_attr_uint = folder
|
||||||
sql_attr_uint = attachments
|
sql_attr_uint = attachments
|
||||||
|
|
||||||
sql_query_killlist = SELECT `id` FROM `metadata` WHERE `deleted`=1
|
sql_query_killlist = SELECT `id` FROM `metadata` WHERE `deleted`=1
|
||||||
|
Loading…
Reference in New Issue
Block a user