Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.68 KB | None | 0 0
  1. source alps
  2. {
  3. type = mysql
  4. sql_host = 192.168.1.15
  5. sql_user = root
  6. sql_pass = FeVqvNKSaxZKga6PUhx7
  7. sql_db = newdevalpsadvisor
  8. sql_port = 3306
  9. #sql_sock = /var/run/mysqld/mysqld.sock
  10. mysql_connect_flags = 32 # enable compression
  11. sql_query_pre = SET NAMES utf8
  12. }
  13.  
  14. #############################################################################
  15. ## article settings
  16. #############################################################################
  17. source articleru : alps
  18. {
  19. sql_query = SELECT * FROM article_ru
  20. sql_field_string = article_id
  21. }
  22.  
  23. index articleru
  24. {
  25. source = articleru
  26. path = /opt/sphinx/indexes/articleru/articleru
  27. docinfo = extern
  28. #morphology = stem_ru, stem_enru
  29. morphology = stem_enru, soundex
  30. min_prefix_len = 2
  31. enable_star = 1
  32. charset_type = utf-8
  33. #html_strip = 1
  34. #html_remove_elements = style, script, code
  35. }
  36.  
  37. source articleen : alps
  38. {
  39. sql_query = SELECT * FROM article_en
  40. sql_field_string = article_id
  41. }
  42.  
  43. index articleen
  44. {
  45. source = articleen
  46. path = /opt/sphinx/indexes/articleen/articleen
  47. docinfo = extern
  48. #morphology = stem_en
  49. morphology = stem_enru, soundex
  50. min_prefix_len = 2
  51. enable_star = 1
  52. charset_type = utf-8
  53. #html_strip = 1
  54. #html_remove_elements = style, script, code
  55. }
  56.  
  57. source articleit : alps
  58. {
  59. sql_query = SELECT * FROM article_it
  60. sql_field_string = article_id
  61. }
  62.  
  63. index articleit
  64. {
  65. source = articleit
  66. path = /opt/sphinx/indexes/articleit/articleit
  67. docinfo = extern
  68. morphology = stem_enru, soundex
  69. min_prefix_len = 2
  70. enable_star = 1
  71. charset_type = utf-8
  72. #html_strip = 1
  73. #html_remove_elements = style, script, code
  74. }
  75.  
  76. source articlede : alps
  77. {
  78. sql_query = SELECT * FROM article_de
  79. sql_field_string = article_id
  80. }
  81.  
  82. index articlede
  83. {
  84. source = articlede
  85. path = /opt/sphinx/indexes/articlede/articlede
  86. docinfo = extern
  87. morphology = stem_enru, soundex
  88. min_prefix_len = 2
  89. enable_star = 1
  90. charset_type = utf-8
  91. #html_strip = 1
  92. #html_remove_elements = style, script, code
  93. }
  94.  
  95. #############################################################################
  96. ## resort settings
  97. #############################################################################
  98. source resortru : alps
  99. {
  100. sql_query = SELECT * FROM resort_ru
  101. sql_field_string = resort_id
  102. }
  103.  
  104. index resortru
  105. {
  106. source = resortru
  107. path = /opt/sphinx/indexes/resortru/resortru
  108. docinfo = extern
  109. #morphology = stem_ru, stem_enru
  110. morphology = stem_enru, soundex
  111. min_prefix_len = 2
  112. enable_star = 1
  113. charset_type = utf-8
  114. #html_strip = 1
  115. #html_remove_elements = style, script, code
  116. }
  117.  
  118. source resorten : alps
  119. {
  120. sql_query = SELECT * FROM resort_en
  121. sql_field_string = resort_id
  122. }
  123.  
  124. index resorten
  125. {
  126. source = resorten
  127. path = /opt/sphinx/indexes/resorten/resorten
  128. docinfo = extern
  129. #morphology = stem_en
  130. morphology = stem_enru, soundex
  131. min_prefix_len = 2
  132. enable_star = 1
  133. charset_type = utf-8
  134. #html_strip = 1
  135. #html_remove_elements = style, script, code
  136. }
  137.  
  138. source resortit : alps
  139. {
  140. sql_query = SELECT * FROM resort_it
  141. sql_field_string = resort_id
  142. }
  143.  
  144. index resortit
  145. {
  146. source = resortit
  147. path = /opt/sphinx/indexes/resortit/resortit
  148. docinfo = extern
  149. morphology = stem_enru, soundex
  150. min_prefix_len = 2
  151. enable_star = 1
  152. charset_type = utf-8
  153. #html_strip = 1
  154. #html_remove_elements = style, script, code
  155. }
  156.  
  157. source resortde : alps
  158. {
  159. sql_query = SELECT * FROM resort_de
  160. sql_field_string = resort_id
  161. }
  162.  
  163. index resortde
  164. {
  165. source = resortde
  166. path = /opt/sphinx/indexes/resortde/resortde
  167. docinfo = extern
  168. morphology = stem_enru, soundex
  169. min_prefix_len = 2
  170. enable_star = 1
  171. charset_type = utf-8
  172. #html_strip = 1
  173. #html_remove_elements = style, script, code
  174. }
  175.  
  176. #############################################################################
  177. ## country settings
  178. #############################################################################
  179. source countryru : alps
  180. {
  181. sql_query = SELECT * FROM country_ru
  182. sql_field_string = country_id
  183. }
  184.  
  185. index countryru
  186. {
  187. source = countryru
  188. path = /opt/sphinx/indexes/countryru/countryru
  189. docinfo = extern
  190. #morphology = stem_ru, stem_enru
  191. morphology = stem_enru, soundex
  192. min_prefix_len = 2
  193. enable_star = 1
  194. charset_type = utf-8
  195. #html_strip = 1
  196. #html_remove_elements = style, script, code
  197. }
  198.  
  199. source countryen : alps
  200. {
  201. sql_query = SELECT * FROM country_en
  202. sql_field_string = country_id
  203. }
  204.  
  205. index countryen
  206. {
  207. source = countryen
  208. path = /opt/sphinx/indexes/countryen/countryen
  209. docinfo = extern
  210. #morphology = stem_en
  211. morphology = stem_enru, soundex
  212. min_prefix_len = 2
  213. enable_star = 1
  214. charset_type = utf-8
  215. #html_strip = 1
  216. #html_remove_elements = style, script, code
  217. }
  218.  
  219. source countryit : alps
  220. {
  221. sql_query = SELECT * FROM country_it
  222. sql_field_string = country_id
  223. }
  224.  
  225. index countryit
  226. {
  227. source = countryit
  228. path = /opt/sphinx/indexes/countryit/countryit
  229. docinfo = extern
  230. morphology = stem_enru, soundex
  231. min_prefix_len = 2
  232. enable_star = 1
  233. charset_type = utf-8
  234. #html_strip = 1
  235. #html_remove_elements = style, script, code
  236. }
  237.  
  238. source countryde : alps
  239. {
  240. sql_query = SELECT * FROM country_de
  241. sql_field_string = country_id
  242. }
  243.  
  244. index countryde
  245. {
  246. source = countryde
  247. path = /opt/sphinx/indexes/countryde/countryde
  248. docinfo = extern
  249. morphology = stem_enru, soundex
  250. min_prefix_len = 2
  251. enable_star = 1
  252. charset_type = utf-8
  253. #html_strip = 1
  254. #html_remove_elements = style, script, code
  255. }
  256.  
  257. #############################################################################
  258. ## chalet settings
  259. #############################################################################
  260. source chaletru : alps
  261. {
  262. sql_query_pre = SET NAMES utf8
  263. sql_query_pre = SET CHARACTER SET utf8
  264.  
  265. sql_query = SELECT * FROM chalet_ru
  266. sql_field_string = chalet_id
  267. sql_field_string = name
  268. sql_field_string = description
  269. }
  270.  
  271. index chaletru
  272. {
  273. source = chaletru
  274. path = /opt/sphinx/indexes/chaletru/chaletru
  275. docinfo = extern
  276. morphology = stem_enru, soundex
  277. min_prefix_len = 2
  278. enable_star = 1
  279. charset_type = utf-8
  280. #html_strip = 1
  281. #html_remove_elements = style, script, code
  282. }
  283.  
  284. source chaleten : alps
  285. {
  286. sql_query = SELECT * FROM chalet_en
  287. sql_field_string = chalet_id
  288. }
  289.  
  290. index chaleten
  291. {
  292. source = chaleten
  293. path = /opt/sphinx/indexes/chaleten/chaleten
  294. docinfo = extern
  295. #morphology = stem_en
  296. morphology = stem_enru, soundex
  297. min_prefix_len = 2
  298. enable_star = 1
  299. charset_type = utf-8
  300. #html_strip = 1
  301. #html_remove_elements = style, script, code
  302. }
  303.  
  304. source chaletit : alps
  305. {
  306. sql_query = SELECT * FROM chalet_it
  307. sql_field_string = chalet_id
  308. }
  309.  
  310. index chaletit
  311. {
  312. source = chaletit
  313. path = /opt/sphinx/indexes/chaletit/chaletit
  314. docinfo = extern
  315. morphology = stem_enru, soundex
  316. min_prefix_len = 2
  317. enable_star = 1
  318. charset_type = utf-8
  319. #html_strip = 1
  320. #html_remove_elements = style, script, code
  321. }
  322.  
  323. source chaletde : alps
  324. {
  325. sql_query = SELECT * FROM chalet_de
  326. sql_field_string = chalet_id
  327. }
  328.  
  329. index chaletde
  330. {
  331. source = chaletde
  332. path = /opt/sphinx/indexes/chaletde/chaletde
  333. docinfo = extern
  334. morphology = stem_enru, soundex
  335. min_prefix_len = 2
  336. enable_star = 1
  337. charset_type = utf-8
  338. #html_strip = 1
  339. #html_remove_elements = style, script, code
  340. }
  341.  
  342.  
  343. #############################################################################
  344. ## indexer settings
  345. #############################################################################
  346.  
  347. indexer
  348. {
  349. mem_limit = 256M
  350. lemmatizer_cache = 128M
  351. lemmatizer_base = /etc/sphinx/dict/
  352. }
  353.  
  354. #############################################################################
  355. ## searchd settings
  356. #############################################################################
  357.  
  358. searchd
  359. {
  360. listen = 127.0.0.1:9306:mysql41
  361.  
  362. read_timeout = 5
  363.  
  364. client_timeout = 300
  365.  
  366. max_children = 100
  367.  
  368. pid_file = /var/run/sphinx/searchd.pid
  369.  
  370. workers = threads
  371.  
  372. # compat_sphinxql_magics = 0
  373.  
  374. log = /var/log/sphinx/searchd.log
  375. query_log = /var/log/sphinx/query.log
  376. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement