aboutsummaryrefslogtreecommitdiff
path: root/sphinx_search.conf
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-01-19 00:02:57 +0100
committerneodarz <neodarz@neodarz.net>2019-01-19 00:02:57 +0100
commita3f01580faf6caee4abcc8e682567b87380857b9 (patch)
treedbf5e0a9866b3aac7e7bb64f2eab8c005e1c28cd /sphinx_search.conf
parent073e919ef198a04da1e5ed28a7dfbc5d9681fc14 (diff)
downloadkhanindexer-a3f01580faf6caee4abcc8e682567b87380857b9.tar.xz
khanindexer-a3f01580faf6caee4abcc8e682567b87380857b9.zip
Add khanindex nevrax indexation
Diffstat (limited to 'sphinx_search.conf')
-rw-r--r--sphinx_search.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/sphinx_search.conf b/sphinx_search.conf
index 63d8d0f..7740000 100644
--- a/sphinx_search.conf
+++ b/sphinx_search.conf
@@ -14,11 +14,32 @@ source neodarznet {
}
+source nevrax {
+ type = pgsql
+
+ sql_host = 127.0.0.1
+ sql_user = root
+ sql_pass = root
+ sql_db = khanindexer
+
+ sql_query = SELECT id, url, title, content FROM nevrax
+
+ sql_field_string = url
+ sql_field_string = title
+ sql_field_string = content
+
+}
+
index neodarznet {
source = neodarznet
path = /tmp/data/neodarznet
}
+index nevrax {
+ source = nevrax
+ path = /tmp/data/nevrax
+}
+
indexer {
mem_limit = 32M
}