Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. indexer
  2. {
  3. }
  4.  
  5. searchd
  6. {
  7. listen = 127.0.0.1:9307:mysql41
  8. log = /home/rustam/projects/qna2017/log/test.searchd.log
  9. query_log = /home/rustam/projects/qna2017/log/test.searchd.query.log
  10. pid_file = /home/rustam/projects/qna2017/log/test.sphinx.pid
  11. workers = threads
  12. binlog_path = /home/rustam/projects/qna2017/tmp/binlog/test
  13. }
  14.  
  15. source question_core_0
  16. {
  17. type = pgsql
  18. sql_host = localhost
  19. sql_user = postgres
  20. sql_pass = 1
  21. sql_db = qna2017_test
  22. sql_query_pre = SET TIME ZONE UTC
  23. sql_query = SELECT "questions"."id" * 2 + 0 AS "id", "questions"."title" AS "title", "questions"."body" AS "body", "users"."email" AS "author", "questions"."id" AS "sphinx_internal_id", 'Question' AS "sphinx_internal_class", 0 AS "sphinx_deleted", "questions"."user_id" AS "user_id", extract(epoch from "questions"."created_at")::int AS "created_at", extract(epoch from "questions"."updated_at")::int AS "updated_at" FROM "questions" LEFT OUTER JOIN "users" ON "users"."id" = "questions"."user_id" WHERE ("questions"."id" BETWEEN $start AND $end) GROUP BY "questions"."id", "questions"."title", "questions"."body", "users"."email", "questions"."id", "questions"."user_id", "questions"."created_at", "questions"."updated_at"
  24. sql_query_range = SELECT COALESCE(MIN("questions"."id"), 1), COALESCE(MAX("questions"."id"), 1) FROM "questions"
  25. sql_attr_uint = sphinx_deleted
  26. sql_attr_bigint = sphinx_internal_id
  27. sql_attr_bigint = user_id
  28. sql_attr_timestamp = created_at
  29. sql_attr_timestamp = updated_at
  30. sql_attr_string = sphinx_internal_class
  31. sql_field_string = title
  32. sql_field_string = author
  33. }
  34.  
  35. index question_core
  36. {
  37. type = plain
  38. path = /home/rustam/projects/qna2017/db/sphinx/test/question_core
  39. docinfo = extern
  40. source = question_core_0
  41. }
  42.  
  43. index question
  44. {
  45. type = distributed
  46. local = question_core
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement