gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

917 lines
33KB

  1. /*
  2. * Create underlying C functions for Snowball stemmers
  3. *
  4. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  5. *
  6. * src/backend/snowball/snowball_func.sql.in
  7. *
  8. * This file is combined with multiple instances of snowball.sql.in to
  9. * build snowball_create.sql, which is executed during initdb.
  10. *
  11. * Note: this file is read in single-user -j mode, which means that the
  12. * command terminator is semicolon-newline-newline; whenever the backend
  13. * sees that, it stops and executes what it's got. If you write a lot of
  14. * statements without empty lines between, they'll all get quoted to you
  15. * in any error message about one of them, so don't do that. Also, you
  16. * cannot write a semicolon immediately followed by an empty line in a
  17. * string literal (including a function body!) or a multiline comment.
  18. */
  19. SET search_path = pg_catalog;
  20. CREATE FUNCTION dsnowball_init(INTERNAL)
  21. RETURNS INTERNAL AS '$libdir/dict_snowball', 'dsnowball_init'
  22. LANGUAGE C STRICT;
  23. CREATE FUNCTION dsnowball_lexize(INTERNAL, INTERNAL, INTERNAL, INTERNAL)
  24. RETURNS INTERNAL AS '$libdir/dict_snowball', 'dsnowball_lexize'
  25. LANGUAGE C STRICT;
  26. CREATE TEXT SEARCH TEMPLATE snowball
  27. (INIT = dsnowball_init,
  28. LEXIZE = dsnowball_lexize);
  29. COMMENT ON TEXT SEARCH TEMPLATE snowball IS 'snowball stemmer';
  30. /*
  31. * text search configuration for arabic language
  32. *
  33. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  34. *
  35. * src/backend/snowball/snowball.sql.in
  36. *
  37. * arabic and certain other macros are replaced for each language;
  38. * see the Makefile for details.
  39. *
  40. * Note: this file is read in single-user -j mode, which means that the
  41. * command terminator is semicolon-newline-newline; whenever the backend
  42. * sees that, it stops and executes what it's got. If you write a lot of
  43. * statements without empty lines between, they'll all get quoted to you
  44. * in any error message about one of them, so don't do that. Also, you
  45. * cannot write a semicolon immediately followed by an empty line in a
  46. * string literal (including a function body!) or a multiline comment.
  47. */
  48. CREATE TEXT SEARCH DICTIONARY arabic_stem
  49. (TEMPLATE = snowball, Language = arabic );
  50. COMMENT ON TEXT SEARCH DICTIONARY arabic_stem IS 'snowball stemmer for arabic language';
  51. CREATE TEXT SEARCH CONFIGURATION arabic
  52. (PARSER = default);
  53. COMMENT ON TEXT SEARCH CONFIGURATION arabic IS 'configuration for arabic language';
  54. ALTER TEXT SEARCH CONFIGURATION arabic ADD MAPPING
  55. FOR email, url, url_path, host, file, version,
  56. sfloat, float, int, uint,
  57. numword, hword_numpart, numhword
  58. WITH simple;
  59. ALTER TEXT SEARCH CONFIGURATION arabic ADD MAPPING
  60. FOR asciiword, hword_asciipart, asciihword
  61. WITH arabic_stem;
  62. ALTER TEXT SEARCH CONFIGURATION arabic ADD MAPPING
  63. FOR word, hword_part, hword
  64. WITH arabic_stem;
  65. /*
  66. * text search configuration for danish language
  67. *
  68. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  69. *
  70. * src/backend/snowball/snowball.sql.in
  71. *
  72. * danish and certain other macros are replaced for each language;
  73. * see the Makefile for details.
  74. *
  75. * Note: this file is read in single-user -j mode, which means that the
  76. * command terminator is semicolon-newline-newline; whenever the backend
  77. * sees that, it stops and executes what it's got. If you write a lot of
  78. * statements without empty lines between, they'll all get quoted to you
  79. * in any error message about one of them, so don't do that. Also, you
  80. * cannot write a semicolon immediately followed by an empty line in a
  81. * string literal (including a function body!) or a multiline comment.
  82. */
  83. CREATE TEXT SEARCH DICTIONARY danish_stem
  84. (TEMPLATE = snowball, Language = danish , StopWords=danish);
  85. COMMENT ON TEXT SEARCH DICTIONARY danish_stem IS 'snowball stemmer for danish language';
  86. CREATE TEXT SEARCH CONFIGURATION danish
  87. (PARSER = default);
  88. COMMENT ON TEXT SEARCH CONFIGURATION danish IS 'configuration for danish language';
  89. ALTER TEXT SEARCH CONFIGURATION danish ADD MAPPING
  90. FOR email, url, url_path, host, file, version,
  91. sfloat, float, int, uint,
  92. numword, hword_numpart, numhword
  93. WITH simple;
  94. ALTER TEXT SEARCH CONFIGURATION danish ADD MAPPING
  95. FOR asciiword, hword_asciipart, asciihword
  96. WITH danish_stem;
  97. ALTER TEXT SEARCH CONFIGURATION danish ADD MAPPING
  98. FOR word, hword_part, hword
  99. WITH danish_stem;
  100. /*
  101. * text search configuration for dutch language
  102. *
  103. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  104. *
  105. * src/backend/snowball/snowball.sql.in
  106. *
  107. * dutch and certain other macros are replaced for each language;
  108. * see the Makefile for details.
  109. *
  110. * Note: this file is read in single-user -j mode, which means that the
  111. * command terminator is semicolon-newline-newline; whenever the backend
  112. * sees that, it stops and executes what it's got. If you write a lot of
  113. * statements without empty lines between, they'll all get quoted to you
  114. * in any error message about one of them, so don't do that. Also, you
  115. * cannot write a semicolon immediately followed by an empty line in a
  116. * string literal (including a function body!) or a multiline comment.
  117. */
  118. CREATE TEXT SEARCH DICTIONARY dutch_stem
  119. (TEMPLATE = snowball, Language = dutch , StopWords=dutch);
  120. COMMENT ON TEXT SEARCH DICTIONARY dutch_stem IS 'snowball stemmer for dutch language';
  121. CREATE TEXT SEARCH CONFIGURATION dutch
  122. (PARSER = default);
  123. COMMENT ON TEXT SEARCH CONFIGURATION dutch IS 'configuration for dutch language';
  124. ALTER TEXT SEARCH CONFIGURATION dutch ADD MAPPING
  125. FOR email, url, url_path, host, file, version,
  126. sfloat, float, int, uint,
  127. numword, hword_numpart, numhword
  128. WITH simple;
  129. ALTER TEXT SEARCH CONFIGURATION dutch ADD MAPPING
  130. FOR asciiword, hword_asciipart, asciihword
  131. WITH dutch_stem;
  132. ALTER TEXT SEARCH CONFIGURATION dutch ADD MAPPING
  133. FOR word, hword_part, hword
  134. WITH dutch_stem;
  135. /*
  136. * text search configuration for english language
  137. *
  138. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  139. *
  140. * src/backend/snowball/snowball.sql.in
  141. *
  142. * english and certain other macros are replaced for each language;
  143. * see the Makefile for details.
  144. *
  145. * Note: this file is read in single-user -j mode, which means that the
  146. * command terminator is semicolon-newline-newline; whenever the backend
  147. * sees that, it stops and executes what it's got. If you write a lot of
  148. * statements without empty lines between, they'll all get quoted to you
  149. * in any error message about one of them, so don't do that. Also, you
  150. * cannot write a semicolon immediately followed by an empty line in a
  151. * string literal (including a function body!) or a multiline comment.
  152. */
  153. CREATE TEXT SEARCH DICTIONARY english_stem
  154. (TEMPLATE = snowball, Language = english , StopWords=english);
  155. COMMENT ON TEXT SEARCH DICTIONARY english_stem IS 'snowball stemmer for english language';
  156. CREATE TEXT SEARCH CONFIGURATION english
  157. (PARSER = default);
  158. COMMENT ON TEXT SEARCH CONFIGURATION english IS 'configuration for english language';
  159. ALTER TEXT SEARCH CONFIGURATION english ADD MAPPING
  160. FOR email, url, url_path, host, file, version,
  161. sfloat, float, int, uint,
  162. numword, hword_numpart, numhword
  163. WITH simple;
  164. ALTER TEXT SEARCH CONFIGURATION english ADD MAPPING
  165. FOR asciiword, hword_asciipart, asciihword
  166. WITH english_stem;
  167. ALTER TEXT SEARCH CONFIGURATION english ADD MAPPING
  168. FOR word, hword_part, hword
  169. WITH english_stem;
  170. /*
  171. * text search configuration for finnish language
  172. *
  173. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  174. *
  175. * src/backend/snowball/snowball.sql.in
  176. *
  177. * finnish and certain other macros are replaced for each language;
  178. * see the Makefile for details.
  179. *
  180. * Note: this file is read in single-user -j mode, which means that the
  181. * command terminator is semicolon-newline-newline; whenever the backend
  182. * sees that, it stops and executes what it's got. If you write a lot of
  183. * statements without empty lines between, they'll all get quoted to you
  184. * in any error message about one of them, so don't do that. Also, you
  185. * cannot write a semicolon immediately followed by an empty line in a
  186. * string literal (including a function body!) or a multiline comment.
  187. */
  188. CREATE TEXT SEARCH DICTIONARY finnish_stem
  189. (TEMPLATE = snowball, Language = finnish , StopWords=finnish);
  190. COMMENT ON TEXT SEARCH DICTIONARY finnish_stem IS 'snowball stemmer for finnish language';
  191. CREATE TEXT SEARCH CONFIGURATION finnish
  192. (PARSER = default);
  193. COMMENT ON TEXT SEARCH CONFIGURATION finnish IS 'configuration for finnish language';
  194. ALTER TEXT SEARCH CONFIGURATION finnish ADD MAPPING
  195. FOR email, url, url_path, host, file, version,
  196. sfloat, float, int, uint,
  197. numword, hword_numpart, numhword
  198. WITH simple;
  199. ALTER TEXT SEARCH CONFIGURATION finnish ADD MAPPING
  200. FOR asciiword, hword_asciipart, asciihword
  201. WITH finnish_stem;
  202. ALTER TEXT SEARCH CONFIGURATION finnish ADD MAPPING
  203. FOR word, hword_part, hword
  204. WITH finnish_stem;
  205. /*
  206. * text search configuration for french language
  207. *
  208. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  209. *
  210. * src/backend/snowball/snowball.sql.in
  211. *
  212. * french and certain other macros are replaced for each language;
  213. * see the Makefile for details.
  214. *
  215. * Note: this file is read in single-user -j mode, which means that the
  216. * command terminator is semicolon-newline-newline; whenever the backend
  217. * sees that, it stops and executes what it's got. If you write a lot of
  218. * statements without empty lines between, they'll all get quoted to you
  219. * in any error message about one of them, so don't do that. Also, you
  220. * cannot write a semicolon immediately followed by an empty line in a
  221. * string literal (including a function body!) or a multiline comment.
  222. */
  223. CREATE TEXT SEARCH DICTIONARY french_stem
  224. (TEMPLATE = snowball, Language = french , StopWords=french);
  225. COMMENT ON TEXT SEARCH DICTIONARY french_stem IS 'snowball stemmer for french language';
  226. CREATE TEXT SEARCH CONFIGURATION french
  227. (PARSER = default);
  228. COMMENT ON TEXT SEARCH CONFIGURATION french IS 'configuration for french language';
  229. ALTER TEXT SEARCH CONFIGURATION french ADD MAPPING
  230. FOR email, url, url_path, host, file, version,
  231. sfloat, float, int, uint,
  232. numword, hword_numpart, numhword
  233. WITH simple;
  234. ALTER TEXT SEARCH CONFIGURATION french ADD MAPPING
  235. FOR asciiword, hword_asciipart, asciihword
  236. WITH french_stem;
  237. ALTER TEXT SEARCH CONFIGURATION french ADD MAPPING
  238. FOR word, hword_part, hword
  239. WITH french_stem;
  240. /*
  241. * text search configuration for german language
  242. *
  243. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  244. *
  245. * src/backend/snowball/snowball.sql.in
  246. *
  247. * german and certain other macros are replaced for each language;
  248. * see the Makefile for details.
  249. *
  250. * Note: this file is read in single-user -j mode, which means that the
  251. * command terminator is semicolon-newline-newline; whenever the backend
  252. * sees that, it stops and executes what it's got. If you write a lot of
  253. * statements without empty lines between, they'll all get quoted to you
  254. * in any error message about one of them, so don't do that. Also, you
  255. * cannot write a semicolon immediately followed by an empty line in a
  256. * string literal (including a function body!) or a multiline comment.
  257. */
  258. CREATE TEXT SEARCH DICTIONARY german_stem
  259. (TEMPLATE = snowball, Language = german , StopWords=german);
  260. COMMENT ON TEXT SEARCH DICTIONARY german_stem IS 'snowball stemmer for german language';
  261. CREATE TEXT SEARCH CONFIGURATION german
  262. (PARSER = default);
  263. COMMENT ON TEXT SEARCH CONFIGURATION german IS 'configuration for german language';
  264. ALTER TEXT SEARCH CONFIGURATION german ADD MAPPING
  265. FOR email, url, url_path, host, file, version,
  266. sfloat, float, int, uint,
  267. numword, hword_numpart, numhword
  268. WITH simple;
  269. ALTER TEXT SEARCH CONFIGURATION german ADD MAPPING
  270. FOR asciiword, hword_asciipart, asciihword
  271. WITH german_stem;
  272. ALTER TEXT SEARCH CONFIGURATION german ADD MAPPING
  273. FOR word, hword_part, hword
  274. WITH german_stem;
  275. /*
  276. * text search configuration for hungarian language
  277. *
  278. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  279. *
  280. * src/backend/snowball/snowball.sql.in
  281. *
  282. * hungarian and certain other macros are replaced for each language;
  283. * see the Makefile for details.
  284. *
  285. * Note: this file is read in single-user -j mode, which means that the
  286. * command terminator is semicolon-newline-newline; whenever the backend
  287. * sees that, it stops and executes what it's got. If you write a lot of
  288. * statements without empty lines between, they'll all get quoted to you
  289. * in any error message about one of them, so don't do that. Also, you
  290. * cannot write a semicolon immediately followed by an empty line in a
  291. * string literal (including a function body!) or a multiline comment.
  292. */
  293. CREATE TEXT SEARCH DICTIONARY hungarian_stem
  294. (TEMPLATE = snowball, Language = hungarian , StopWords=hungarian);
  295. COMMENT ON TEXT SEARCH DICTIONARY hungarian_stem IS 'snowball stemmer for hungarian language';
  296. CREATE TEXT SEARCH CONFIGURATION hungarian
  297. (PARSER = default);
  298. COMMENT ON TEXT SEARCH CONFIGURATION hungarian IS 'configuration for hungarian language';
  299. ALTER TEXT SEARCH CONFIGURATION hungarian ADD MAPPING
  300. FOR email, url, url_path, host, file, version,
  301. sfloat, float, int, uint,
  302. numword, hword_numpart, numhword
  303. WITH simple;
  304. ALTER TEXT SEARCH CONFIGURATION hungarian ADD MAPPING
  305. FOR asciiword, hword_asciipart, asciihword
  306. WITH hungarian_stem;
  307. ALTER TEXT SEARCH CONFIGURATION hungarian ADD MAPPING
  308. FOR word, hword_part, hword
  309. WITH hungarian_stem;
  310. /*
  311. * text search configuration for indonesian language
  312. *
  313. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  314. *
  315. * src/backend/snowball/snowball.sql.in
  316. *
  317. * indonesian and certain other macros are replaced for each language;
  318. * see the Makefile for details.
  319. *
  320. * Note: this file is read in single-user -j mode, which means that the
  321. * command terminator is semicolon-newline-newline; whenever the backend
  322. * sees that, it stops and executes what it's got. If you write a lot of
  323. * statements without empty lines between, they'll all get quoted to you
  324. * in any error message about one of them, so don't do that. Also, you
  325. * cannot write a semicolon immediately followed by an empty line in a
  326. * string literal (including a function body!) or a multiline comment.
  327. */
  328. CREATE TEXT SEARCH DICTIONARY indonesian_stem
  329. (TEMPLATE = snowball, Language = indonesian );
  330. COMMENT ON TEXT SEARCH DICTIONARY indonesian_stem IS 'snowball stemmer for indonesian language';
  331. CREATE TEXT SEARCH CONFIGURATION indonesian
  332. (PARSER = default);
  333. COMMENT ON TEXT SEARCH CONFIGURATION indonesian IS 'configuration for indonesian language';
  334. ALTER TEXT SEARCH CONFIGURATION indonesian ADD MAPPING
  335. FOR email, url, url_path, host, file, version,
  336. sfloat, float, int, uint,
  337. numword, hword_numpart, numhword
  338. WITH simple;
  339. ALTER TEXT SEARCH CONFIGURATION indonesian ADD MAPPING
  340. FOR asciiword, hword_asciipart, asciihword
  341. WITH indonesian_stem;
  342. ALTER TEXT SEARCH CONFIGURATION indonesian ADD MAPPING
  343. FOR word, hword_part, hword
  344. WITH indonesian_stem;
  345. /*
  346. * text search configuration for irish language
  347. *
  348. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  349. *
  350. * src/backend/snowball/snowball.sql.in
  351. *
  352. * irish and certain other macros are replaced for each language;
  353. * see the Makefile for details.
  354. *
  355. * Note: this file is read in single-user -j mode, which means that the
  356. * command terminator is semicolon-newline-newline; whenever the backend
  357. * sees that, it stops and executes what it's got. If you write a lot of
  358. * statements without empty lines between, they'll all get quoted to you
  359. * in any error message about one of them, so don't do that. Also, you
  360. * cannot write a semicolon immediately followed by an empty line in a
  361. * string literal (including a function body!) or a multiline comment.
  362. */
  363. CREATE TEXT SEARCH DICTIONARY irish_stem
  364. (TEMPLATE = snowball, Language = irish );
  365. COMMENT ON TEXT SEARCH DICTIONARY irish_stem IS 'snowball stemmer for irish language';
  366. CREATE TEXT SEARCH CONFIGURATION irish
  367. (PARSER = default);
  368. COMMENT ON TEXT SEARCH CONFIGURATION irish IS 'configuration for irish language';
  369. ALTER TEXT SEARCH CONFIGURATION irish ADD MAPPING
  370. FOR email, url, url_path, host, file, version,
  371. sfloat, float, int, uint,
  372. numword, hword_numpart, numhword
  373. WITH simple;
  374. ALTER TEXT SEARCH CONFIGURATION irish ADD MAPPING
  375. FOR asciiword, hword_asciipart, asciihword
  376. WITH irish_stem;
  377. ALTER TEXT SEARCH CONFIGURATION irish ADD MAPPING
  378. FOR word, hword_part, hword
  379. WITH irish_stem;
  380. /*
  381. * text search configuration for italian language
  382. *
  383. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  384. *
  385. * src/backend/snowball/snowball.sql.in
  386. *
  387. * italian and certain other macros are replaced for each language;
  388. * see the Makefile for details.
  389. *
  390. * Note: this file is read in single-user -j mode, which means that the
  391. * command terminator is semicolon-newline-newline; whenever the backend
  392. * sees that, it stops and executes what it's got. If you write a lot of
  393. * statements without empty lines between, they'll all get quoted to you
  394. * in any error message about one of them, so don't do that. Also, you
  395. * cannot write a semicolon immediately followed by an empty line in a
  396. * string literal (including a function body!) or a multiline comment.
  397. */
  398. CREATE TEXT SEARCH DICTIONARY italian_stem
  399. (TEMPLATE = snowball, Language = italian , StopWords=italian);
  400. COMMENT ON TEXT SEARCH DICTIONARY italian_stem IS 'snowball stemmer for italian language';
  401. CREATE TEXT SEARCH CONFIGURATION italian
  402. (PARSER = default);
  403. COMMENT ON TEXT SEARCH CONFIGURATION italian IS 'configuration for italian language';
  404. ALTER TEXT SEARCH CONFIGURATION italian ADD MAPPING
  405. FOR email, url, url_path, host, file, version,
  406. sfloat, float, int, uint,
  407. numword, hword_numpart, numhword
  408. WITH simple;
  409. ALTER TEXT SEARCH CONFIGURATION italian ADD MAPPING
  410. FOR asciiword, hword_asciipart, asciihword
  411. WITH italian_stem;
  412. ALTER TEXT SEARCH CONFIGURATION italian ADD MAPPING
  413. FOR word, hword_part, hword
  414. WITH italian_stem;
  415. /*
  416. * text search configuration for lithuanian language
  417. *
  418. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  419. *
  420. * src/backend/snowball/snowball.sql.in
  421. *
  422. * lithuanian and certain other macros are replaced for each language;
  423. * see the Makefile for details.
  424. *
  425. * Note: this file is read in single-user -j mode, which means that the
  426. * command terminator is semicolon-newline-newline; whenever the backend
  427. * sees that, it stops and executes what it's got. If you write a lot of
  428. * statements without empty lines between, they'll all get quoted to you
  429. * in any error message about one of them, so don't do that. Also, you
  430. * cannot write a semicolon immediately followed by an empty line in a
  431. * string literal (including a function body!) or a multiline comment.
  432. */
  433. CREATE TEXT SEARCH DICTIONARY lithuanian_stem
  434. (TEMPLATE = snowball, Language = lithuanian );
  435. COMMENT ON TEXT SEARCH DICTIONARY lithuanian_stem IS 'snowball stemmer for lithuanian language';
  436. CREATE TEXT SEARCH CONFIGURATION lithuanian
  437. (PARSER = default);
  438. COMMENT ON TEXT SEARCH CONFIGURATION lithuanian IS 'configuration for lithuanian language';
  439. ALTER TEXT SEARCH CONFIGURATION lithuanian ADD MAPPING
  440. FOR email, url, url_path, host, file, version,
  441. sfloat, float, int, uint,
  442. numword, hword_numpart, numhword
  443. WITH simple;
  444. ALTER TEXT SEARCH CONFIGURATION lithuanian ADD MAPPING
  445. FOR asciiword, hword_asciipart, asciihword
  446. WITH lithuanian_stem;
  447. ALTER TEXT SEARCH CONFIGURATION lithuanian ADD MAPPING
  448. FOR word, hword_part, hword
  449. WITH lithuanian_stem;
  450. /*
  451. * text search configuration for nepali language
  452. *
  453. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  454. *
  455. * src/backend/snowball/snowball.sql.in
  456. *
  457. * nepali and certain other macros are replaced for each language;
  458. * see the Makefile for details.
  459. *
  460. * Note: this file is read in single-user -j mode, which means that the
  461. * command terminator is semicolon-newline-newline; whenever the backend
  462. * sees that, it stops and executes what it's got. If you write a lot of
  463. * statements without empty lines between, they'll all get quoted to you
  464. * in any error message about one of them, so don't do that. Also, you
  465. * cannot write a semicolon immediately followed by an empty line in a
  466. * string literal (including a function body!) or a multiline comment.
  467. */
  468. CREATE TEXT SEARCH DICTIONARY nepali_stem
  469. (TEMPLATE = snowball, Language = nepali , StopWords=nepali);
  470. COMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';
  471. CREATE TEXT SEARCH CONFIGURATION nepali
  472. (PARSER = default);
  473. COMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';
  474. ALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING
  475. FOR email, url, url_path, host, file, version,
  476. sfloat, float, int, uint,
  477. numword, hword_numpart, numhword
  478. WITH simple;
  479. ALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING
  480. FOR asciiword, hword_asciipart, asciihword
  481. WITH nepali_stem;
  482. ALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING
  483. FOR word, hword_part, hword
  484. WITH nepali_stem;
  485. /*
  486. * text search configuration for norwegian language
  487. *
  488. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  489. *
  490. * src/backend/snowball/snowball.sql.in
  491. *
  492. * norwegian and certain other macros are replaced for each language;
  493. * see the Makefile for details.
  494. *
  495. * Note: this file is read in single-user -j mode, which means that the
  496. * command terminator is semicolon-newline-newline; whenever the backend
  497. * sees that, it stops and executes what it's got. If you write a lot of
  498. * statements without empty lines between, they'll all get quoted to you
  499. * in any error message about one of them, so don't do that. Also, you
  500. * cannot write a semicolon immediately followed by an empty line in a
  501. * string literal (including a function body!) or a multiline comment.
  502. */
  503. CREATE TEXT SEARCH DICTIONARY norwegian_stem
  504. (TEMPLATE = snowball, Language = norwegian , StopWords=norwegian);
  505. COMMENT ON TEXT SEARCH DICTIONARY norwegian_stem IS 'snowball stemmer for norwegian language';
  506. CREATE TEXT SEARCH CONFIGURATION norwegian
  507. (PARSER = default);
  508. COMMENT ON TEXT SEARCH CONFIGURATION norwegian IS 'configuration for norwegian language';
  509. ALTER TEXT SEARCH CONFIGURATION norwegian ADD MAPPING
  510. FOR email, url, url_path, host, file, version,
  511. sfloat, float, int, uint,
  512. numword, hword_numpart, numhword
  513. WITH simple;
  514. ALTER TEXT SEARCH CONFIGURATION norwegian ADD MAPPING
  515. FOR asciiword, hword_asciipart, asciihword
  516. WITH norwegian_stem;
  517. ALTER TEXT SEARCH CONFIGURATION norwegian ADD MAPPING
  518. FOR word, hword_part, hword
  519. WITH norwegian_stem;
  520. /*
  521. * text search configuration for portuguese language
  522. *
  523. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  524. *
  525. * src/backend/snowball/snowball.sql.in
  526. *
  527. * portuguese and certain other macros are replaced for each language;
  528. * see the Makefile for details.
  529. *
  530. * Note: this file is read in single-user -j mode, which means that the
  531. * command terminator is semicolon-newline-newline; whenever the backend
  532. * sees that, it stops and executes what it's got. If you write a lot of
  533. * statements without empty lines between, they'll all get quoted to you
  534. * in any error message about one of them, so don't do that. Also, you
  535. * cannot write a semicolon immediately followed by an empty line in a
  536. * string literal (including a function body!) or a multiline comment.
  537. */
  538. CREATE TEXT SEARCH DICTIONARY portuguese_stem
  539. (TEMPLATE = snowball, Language = portuguese , StopWords=portuguese);
  540. COMMENT ON TEXT SEARCH DICTIONARY portuguese_stem IS 'snowball stemmer for portuguese language';
  541. CREATE TEXT SEARCH CONFIGURATION portuguese
  542. (PARSER = default);
  543. COMMENT ON TEXT SEARCH CONFIGURATION portuguese IS 'configuration for portuguese language';
  544. ALTER TEXT SEARCH CONFIGURATION portuguese ADD MAPPING
  545. FOR email, url, url_path, host, file, version,
  546. sfloat, float, int, uint,
  547. numword, hword_numpart, numhword
  548. WITH simple;
  549. ALTER TEXT SEARCH CONFIGURATION portuguese ADD MAPPING
  550. FOR asciiword, hword_asciipart, asciihword
  551. WITH portuguese_stem;
  552. ALTER TEXT SEARCH CONFIGURATION portuguese ADD MAPPING
  553. FOR word, hword_part, hword
  554. WITH portuguese_stem;
  555. /*
  556. * text search configuration for romanian language
  557. *
  558. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  559. *
  560. * src/backend/snowball/snowball.sql.in
  561. *
  562. * romanian and certain other macros are replaced for each language;
  563. * see the Makefile for details.
  564. *
  565. * Note: this file is read in single-user -j mode, which means that the
  566. * command terminator is semicolon-newline-newline; whenever the backend
  567. * sees that, it stops and executes what it's got. If you write a lot of
  568. * statements without empty lines between, they'll all get quoted to you
  569. * in any error message about one of them, so don't do that. Also, you
  570. * cannot write a semicolon immediately followed by an empty line in a
  571. * string literal (including a function body!) or a multiline comment.
  572. */
  573. CREATE TEXT SEARCH DICTIONARY romanian_stem
  574. (TEMPLATE = snowball, Language = romanian );
  575. COMMENT ON TEXT SEARCH DICTIONARY romanian_stem IS 'snowball stemmer for romanian language';
  576. CREATE TEXT SEARCH CONFIGURATION romanian
  577. (PARSER = default);
  578. COMMENT ON TEXT SEARCH CONFIGURATION romanian IS 'configuration for romanian language';
  579. ALTER TEXT SEARCH CONFIGURATION romanian ADD MAPPING
  580. FOR email, url, url_path, host, file, version,
  581. sfloat, float, int, uint,
  582. numword, hword_numpart, numhword
  583. WITH simple;
  584. ALTER TEXT SEARCH CONFIGURATION romanian ADD MAPPING
  585. FOR asciiword, hword_asciipart, asciihword
  586. WITH romanian_stem;
  587. ALTER TEXT SEARCH CONFIGURATION romanian ADD MAPPING
  588. FOR word, hword_part, hword
  589. WITH romanian_stem;
  590. /*
  591. * text search configuration for russian language
  592. *
  593. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  594. *
  595. * src/backend/snowball/snowball.sql.in
  596. *
  597. * russian and certain other macros are replaced for each language;
  598. * see the Makefile for details.
  599. *
  600. * Note: this file is read in single-user -j mode, which means that the
  601. * command terminator is semicolon-newline-newline; whenever the backend
  602. * sees that, it stops and executes what it's got. If you write a lot of
  603. * statements without empty lines between, they'll all get quoted to you
  604. * in any error message about one of them, so don't do that. Also, you
  605. * cannot write a semicolon immediately followed by an empty line in a
  606. * string literal (including a function body!) or a multiline comment.
  607. */
  608. CREATE TEXT SEARCH DICTIONARY russian_stem
  609. (TEMPLATE = snowball, Language = russian , StopWords=russian);
  610. COMMENT ON TEXT SEARCH DICTIONARY russian_stem IS 'snowball stemmer for russian language';
  611. CREATE TEXT SEARCH CONFIGURATION russian
  612. (PARSER = default);
  613. COMMENT ON TEXT SEARCH CONFIGURATION russian IS 'configuration for russian language';
  614. ALTER TEXT SEARCH CONFIGURATION russian ADD MAPPING
  615. FOR email, url, url_path, host, file, version,
  616. sfloat, float, int, uint,
  617. numword, hword_numpart, numhword
  618. WITH simple;
  619. ALTER TEXT SEARCH CONFIGURATION russian ADD MAPPING
  620. FOR asciiword, hword_asciipart, asciihword
  621. WITH english_stem;
  622. ALTER TEXT SEARCH CONFIGURATION russian ADD MAPPING
  623. FOR word, hword_part, hword
  624. WITH russian_stem;
  625. /*
  626. * text search configuration for spanish language
  627. *
  628. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  629. *
  630. * src/backend/snowball/snowball.sql.in
  631. *
  632. * spanish and certain other macros are replaced for each language;
  633. * see the Makefile for details.
  634. *
  635. * Note: this file is read in single-user -j mode, which means that the
  636. * command terminator is semicolon-newline-newline; whenever the backend
  637. * sees that, it stops and executes what it's got. If you write a lot of
  638. * statements without empty lines between, they'll all get quoted to you
  639. * in any error message about one of them, so don't do that. Also, you
  640. * cannot write a semicolon immediately followed by an empty line in a
  641. * string literal (including a function body!) or a multiline comment.
  642. */
  643. CREATE TEXT SEARCH DICTIONARY spanish_stem
  644. (TEMPLATE = snowball, Language = spanish , StopWords=spanish);
  645. COMMENT ON TEXT SEARCH DICTIONARY spanish_stem IS 'snowball stemmer for spanish language';
  646. CREATE TEXT SEARCH CONFIGURATION spanish
  647. (PARSER = default);
  648. COMMENT ON TEXT SEARCH CONFIGURATION spanish IS 'configuration for spanish language';
  649. ALTER TEXT SEARCH CONFIGURATION spanish ADD MAPPING
  650. FOR email, url, url_path, host, file, version,
  651. sfloat, float, int, uint,
  652. numword, hword_numpart, numhword
  653. WITH simple;
  654. ALTER TEXT SEARCH CONFIGURATION spanish ADD MAPPING
  655. FOR asciiword, hword_asciipart, asciihword
  656. WITH spanish_stem;
  657. ALTER TEXT SEARCH CONFIGURATION spanish ADD MAPPING
  658. FOR word, hword_part, hword
  659. WITH spanish_stem;
  660. /*
  661. * text search configuration for swedish language
  662. *
  663. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  664. *
  665. * src/backend/snowball/snowball.sql.in
  666. *
  667. * swedish and certain other macros are replaced for each language;
  668. * see the Makefile for details.
  669. *
  670. * Note: this file is read in single-user -j mode, which means that the
  671. * command terminator is semicolon-newline-newline; whenever the backend
  672. * sees that, it stops and executes what it's got. If you write a lot of
  673. * statements without empty lines between, they'll all get quoted to you
  674. * in any error message about one of them, so don't do that. Also, you
  675. * cannot write a semicolon immediately followed by an empty line in a
  676. * string literal (including a function body!) or a multiline comment.
  677. */
  678. CREATE TEXT SEARCH DICTIONARY swedish_stem
  679. (TEMPLATE = snowball, Language = swedish , StopWords=swedish);
  680. COMMENT ON TEXT SEARCH DICTIONARY swedish_stem IS 'snowball stemmer for swedish language';
  681. CREATE TEXT SEARCH CONFIGURATION swedish
  682. (PARSER = default);
  683. COMMENT ON TEXT SEARCH CONFIGURATION swedish IS 'configuration for swedish language';
  684. ALTER TEXT SEARCH CONFIGURATION swedish ADD MAPPING
  685. FOR email, url, url_path, host, file, version,
  686. sfloat, float, int, uint,
  687. numword, hword_numpart, numhword
  688. WITH simple;
  689. ALTER TEXT SEARCH CONFIGURATION swedish ADD MAPPING
  690. FOR asciiword, hword_asciipart, asciihword
  691. WITH swedish_stem;
  692. ALTER TEXT SEARCH CONFIGURATION swedish ADD MAPPING
  693. FOR word, hword_part, hword
  694. WITH swedish_stem;
  695. /*
  696. * text search configuration for tamil language
  697. *
  698. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  699. *
  700. * src/backend/snowball/snowball.sql.in
  701. *
  702. * tamil and certain other macros are replaced for each language;
  703. * see the Makefile for details.
  704. *
  705. * Note: this file is read in single-user -j mode, which means that the
  706. * command terminator is semicolon-newline-newline; whenever the backend
  707. * sees that, it stops and executes what it's got. If you write a lot of
  708. * statements without empty lines between, they'll all get quoted to you
  709. * in any error message about one of them, so don't do that. Also, you
  710. * cannot write a semicolon immediately followed by an empty line in a
  711. * string literal (including a function body!) or a multiline comment.
  712. */
  713. CREATE TEXT SEARCH DICTIONARY tamil_stem
  714. (TEMPLATE = snowball, Language = tamil );
  715. COMMENT ON TEXT SEARCH DICTIONARY tamil_stem IS 'snowball stemmer for tamil language';
  716. CREATE TEXT SEARCH CONFIGURATION tamil
  717. (PARSER = default);
  718. COMMENT ON TEXT SEARCH CONFIGURATION tamil IS 'configuration for tamil language';
  719. ALTER TEXT SEARCH CONFIGURATION tamil ADD MAPPING
  720. FOR email, url, url_path, host, file, version,
  721. sfloat, float, int, uint,
  722. numword, hword_numpart, numhword
  723. WITH simple;
  724. ALTER TEXT SEARCH CONFIGURATION tamil ADD MAPPING
  725. FOR asciiword, hword_asciipart, asciihword
  726. WITH tamil_stem;
  727. ALTER TEXT SEARCH CONFIGURATION tamil ADD MAPPING
  728. FOR word, hword_part, hword
  729. WITH tamil_stem;
  730. /*
  731. * text search configuration for turkish language
  732. *
  733. * Copyright (c) 2007-2019, PostgreSQL Global Development Group
  734. *
  735. * src/backend/snowball/snowball.sql.in
  736. *
  737. * turkish and certain other macros are replaced for each language;
  738. * see the Makefile for details.
  739. *
  740. * Note: this file is read in single-user -j mode, which means that the
  741. * command terminator is semicolon-newline-newline; whenever the backend
  742. * sees that, it stops and executes what it's got. If you write a lot of
  743. * statements without empty lines between, they'll all get quoted to you
  744. * in any error message about one of them, so don't do that. Also, you
  745. * cannot write a semicolon immediately followed by an empty line in a
  746. * string literal (including a function body!) or a multiline comment.
  747. */
  748. CREATE TEXT SEARCH DICTIONARY turkish_stem
  749. (TEMPLATE = snowball, Language = turkish , StopWords=turkish);
  750. COMMENT ON TEXT SEARCH DICTIONARY turkish_stem IS 'snowball stemmer for turkish language';
  751. CREATE TEXT SEARCH CONFIGURATION turkish
  752. (PARSER = default);
  753. COMMENT ON TEXT SEARCH CONFIGURATION turkish IS 'configuration for turkish language';
  754. ALTER TEXT SEARCH CONFIGURATION turkish ADD MAPPING
  755. FOR email, url, url_path, host, file, version,
  756. sfloat, float, int, uint,
  757. numword, hword_numpart, numhword
  758. WITH simple;
  759. ALTER TEXT SEARCH CONFIGURATION turkish ADD MAPPING
  760. FOR asciiword, hword_asciipart, asciihword
  761. WITH turkish_stem;
  762. ALTER TEXT SEARCH CONFIGURATION turkish ADD MAPPING
  763. FOR word, hword_part, hword
  764. WITH turkish_stem;
上海开阖软件有限公司 沪ICP备12045867号-1