aboutsummaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-01-14 22:20:36 +0100
committerneodarz <neodarz@neodarz.net>2019-01-14 22:20:43 +0100
commit65ae9c9ec577076bf7f1355166763fbf691a9349 (patch)
treea9e5b199b1c501952bb13a37a75bf13e8fd294d7 /sphinx
parent07cc1fdc7e79468a6e8d9b53048712b652f8da84 (diff)
downloadkhanindexer-65ae9c9ec577076bf7f1355166763fbf691a9349.tar.xz
khanindexer-65ae9c9ec577076bf7f1355166763fbf691a9349.zip
Add mantacoresearch part
Diffstat (limited to '')
-rw-r--r--sphinx_search.conf39
1 files changed, 39 insertions, 0 deletions
diff --git a/sphinx_search.conf b/sphinx_search.conf
new file mode 100644
index 0000000..0259dc0
--- /dev/null
+++ b/sphinx_search.conf
@@ -0,0 +1,39 @@
+source datas {
+ 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 page
+
+}
+
+index datas {
+ source = datas
+ path = /tmp/data/datas
+}
+
+indexer {
+ mem_limit = 32M
+}
+
+searchd {
+ listen = localhost:8080:http
+ query_log = /tmp/query.log
+ binlog_path = /tmp/
+ read_timeout = 5
+ client_timeout = 300
+ max_children = 30
+ persistent_connections_limit = 30
+ pid_file = /tmp/searchd.pid
+ seamless_rotate = 1
+ preopen_indexes = 1
+ unlink_old = 1
+ mva_updates_pool = 1M
+ max_packet_size = 8M
+ max_filter_values = 4096
+ max_batch_queries = 32
+ workers = threads_pool
+}