From a67d799382f9783690eb58f80718a919e9707beb Mon Sep 17 00:00:00 2001 From: SJ Date: Sun, 2 Sep 2012 23:18:04 +0200 Subject: [PATCH] added a note feature to index --- etc/sphinx.conf | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/etc/sphinx.conf b/etc/sphinx.conf index 28522f56..78cb9ddd 100644 --- a/etc/sphinx.conf +++ b/etc/sphinx.conf @@ -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