{"kind": "fts", "major": "18", "item": {"slug": "configuration-nepali", "name": "nepali", "name_zh": "", "category": "\u914d\u7f6e", "summary": "\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002", "aliases": [], "content_hash": "487913ec9332926e47c46e5e64f5d034fc8b9eb3cafeee3696881ebf450c6c2a", "versions": {"12": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=12", "text": "simple"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=12", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=12", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=12", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=12", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=12", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=12", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=12", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "12.22", "major": "12", "channel": "historical", "revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b", "source_sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b", "catalog_fingerprint": "9f857f4ee4875f9c7de6bfc9df4b757dec8b3a0bb88eadb519c7bd267bd56149"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, {"url": "https://pg.center/docs/12/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 12 English manual", "sha256": "94f68950017a5a2943715e16826e1b0d1c9d766744e57328087731598fa234b2", "language": "en", "original_url": "/docs/12/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2019, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/12/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/12/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/12/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/12/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "9d8ce1261bffa2ccde2943293454bc86a7ab9f059b498df7669b72edea43c58b", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/12/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "0e39ea8760ed35e26e812e8f695386de5260b77723377c3bf034b793bdb51dd7", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "Text search configuration nepali.", "/versions/12/facts/0/label": "Configuration", "/versions/12/facts/1/label": "Parser", "/versions/12/facts/1/value": "default", "/versions/12/tables/0/title": "Token-to-dictionary mappings", "/versions/12/related/0/label": "default parser", "/versions/12/sections/0/title": "Generated initdb definition", "/versions/12/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/12/tables/0/columns/0/label": "Token type", "/versions/12/tables/0/columns/1/label": "Order", "/versions/12/tables/0/columns/2/label": "Dictionary"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "046d50b66526bd8aaf2abe96d32e9dbf308a23818b07af46825b5eb36ee8d86f"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}, "13": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=13", "text": "simple"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=13", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=13", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=13", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=13", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=13", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=13", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=13", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "13.23", "major": "13", "channel": "historical", "revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6", "source_sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6", "catalog_fingerprint": "c7015c845255c9d721c547c8ab9ef37825d332588c9691d982e6906b7d571002"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, {"url": "https://pg.center/docs/13/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 13 English manual", "sha256": "6dce07f2bdf0a61fbc512906c346a890d4ec6841c2792cda28aed00018306c33", "language": "en", "original_url": "/docs/13/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2020, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/13/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/13/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/13/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/13/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "58733c88e0d5af1fc61cf9c9f4999764248e349d7a2f4185749d44111bf7c2fd", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/13/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "ffd6cef2d4dfdac0f5ce87234bcd3445b2c6c883dc3ab1eb5fc821a8eab9e664", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "Text search configuration nepali.", "/versions/13/facts/0/label": "Configuration", "/versions/13/facts/1/label": "Parser", "/versions/13/facts/1/value": "default", "/versions/13/tables/0/title": "Token-to-dictionary mappings", "/versions/13/related/0/label": "default parser", "/versions/13/sections/0/title": "Generated initdb definition", "/versions/13/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/13/tables/0/columns/0/label": "Token type", "/versions/13/tables/0/columns/1/label": "Order", "/versions/13/tables/0/columns/2/label": "Dictionary"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "974a749c6d47ec8452eae0a5fe4405dbdad08f45617a54e9167a4c0eeb379b64"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}, "14": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=14", "text": "simple"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=14", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=14", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=14", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=14", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=14", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=14", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=14", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "14.24", "major": "14", "channel": "stable", "revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897", "source_sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897", "catalog_fingerprint": "b272e6a82e4c46efda81c3a6a4cdf7de6a83dfff7f02f226a392fbe9acdd3adb"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, {"url": "https://pg.center/docs/14/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 14 English manual", "sha256": "ddf909a1152235b56c4f2788b34e591e215c1da46d3a759c30b7cd2b9b60c70a", "language": "en", "original_url": "/docs/14/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2021, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/14/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/14/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/14/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/14/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "f0d7f7da0196ae7e641535d9d2a7b7b98025241be584b2806d3a5d72e187b93e", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/14/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "1b8592ffeb65b92f0130b75cc6976ab40e07d3ccba69494cf64a5fd685c24733", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Text search configuration nepali.", "/versions/14/facts/0/label": "Configuration", "/versions/14/facts/1/label": "Parser", "/versions/14/facts/1/value": "default", "/versions/14/tables/0/title": "Token-to-dictionary mappings", "/versions/14/related/0/label": "default parser", "/versions/14/sections/0/title": "Generated initdb definition", "/versions/14/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/14/tables/0/columns/0/label": "Token type", "/versions/14/tables/0/columns/1/label": "Order", "/versions/14/tables/0/columns/2/label": "Dictionary"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "6bf1776d303e25273247aff2bdb98d12d987c21d155561e3a3787bd9a7f5f7d9"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}, "15": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=15", "text": "simple"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=15", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=15", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=15", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=15", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=15", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=15", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=15", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "15.19", "major": "15", "channel": "stable", "revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89", "source_sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89", "catalog_fingerprint": "fefe3c425147a86defada190c9b0663cfe02caa1724f5dede93e46457572252d"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, {"url": "https://pg.center/docs/15/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 15 English manual", "sha256": "1a2f4d4b9c2e47e293d13b928b8420747c30283265e51c822308ace5735a043d", "language": "en", "original_url": "/docs/15/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2022, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/15/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/15/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/15/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/15/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "2af091c97e844db68e9fae9841e7d23dba65cd9121b0d4b18c2a7f0f2adc0426", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/15/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "eb5fb68fe786414c9c2ae9d1de56e12cc67d9b3d1ba9fe4f2eb87aaad2330394", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Text search configuration nepali.", "/versions/15/facts/0/label": "Configuration", "/versions/15/facts/1/label": "Parser", "/versions/15/facts/1/value": "default", "/versions/15/tables/0/title": "Token-to-dictionary mappings", "/versions/15/related/0/label": "default parser", "/versions/15/sections/0/title": "Generated initdb definition", "/versions/15/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/15/tables/0/columns/0/label": "Token type", "/versions/15/tables/0/columns/1/label": "Order", "/versions/15/tables/0/columns/2/label": "Dictionary"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "dd60d7b98c9f6d29c70a7f74eb72017aa4958078c2eebf629cc37ca9c68caa41"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}, "16": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=16", "text": "\u7b80\u5355"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=16", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=16", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=16", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=16", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=16", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=16", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=16", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "16.15", "major": "16", "channel": "stable", "revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed", "source_sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed", "catalog_fingerprint": "fa133458dc8f52e15083b4f59b7a582e2e378b608d3ac5c53054df458a374e23"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, {"url": "https://pg.center/docs/16/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 16 English manual", "sha256": "4a26236464c858040fa8e59710468e61d130391d40ef3c3c54f3257a2992f5b5", "language": "en", "original_url": "/docs/16/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2023, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/16/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/16/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/16/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/16/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "bd6afb30bbf4c65c31030954168bc14f2e9c84a294ae7e96be2f04b4dcb20a16", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/16/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "13c61e1817e090a1103852280b2ef0005c7c7a976aef1674f77dfa9153b9065d", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}, {"url": "/docs/16/using-explain.html", "method": "same-major semantic node", "sha256": "a57dce89f2a7bb97c5428853ed29e289ea1527692d8e4b1aa331311048271790", "language": "zh", "matched_nodes": ["#USING-EXPLAIN/div[7]/p[24]/span[0]/span[0]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Text search configuration nepali.", "/versions/16/facts/0/label": "Configuration", "/versions/16/facts/1/label": "Parser", "/versions/16/facts/1/value": "default", "/versions/16/tables/0/title": "Token-to-dictionary mappings", "/versions/16/related/0/label": "default parser", "/versions/16/sections/0/title": "Generated initdb definition", "/versions/16/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/16/tables/0/columns/0/label": "Token type", "/versions/16/tables/0/columns/1/label": "Order", "/versions/16/tables/0/columns/2/label": "Dictionary", "/versions/16/tables/0/rows/0/dictionary/text": "simple", "/versions/16/tables/0/rows/1/dictionary/text": "simple", "/versions/16/tables/0/rows/2/dictionary/text": "simple", "/versions/16/tables/0/rows/3/dictionary/text": "simple", "/versions/16/tables/0/rows/4/dictionary/text": "simple", "/versions/16/tables/0/rows/5/dictionary/text": "simple", "/versions/16/tables/0/rows/6/dictionary/text": "simple", "/versions/16/tables/0/rows/7/dictionary/text": "simple", "/versions/16/tables/0/rows/8/dictionary/text": "simple", "/versions/16/tables/0/rows/9/dictionary/text": "simple", "/versions/16/tables/0/rows/10/dictionary/text": "simple", "/versions/16/tables/0/rows/11/dictionary/text": "simple", "/versions/16/tables/0/rows/12/dictionary/text": "simple"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "8cdedb83c2f2ebd5bf071acd5df410089bc6ce1d82da35e711a572f1712fe277"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}, "17": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=17", "text": "\u7b80\u5355"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=17", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=17", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=17", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=17", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=17", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=17", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=17", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "17.11", "major": "17", "channel": "stable", "revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979", "source_sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979", "catalog_fingerprint": "4bbe3ac77becd618478f66aec420a533e9017be356c5c1d51a4b17f0fd497c07"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, {"url": "https://pg.center/docs/17/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 17 English manual", "sha256": "0dabf4ac25ebd86f33d1422a40d9c69fd4d1dd9d38e8a960aa2ad22ffce551ff", "language": "en", "original_url": "/docs/17/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2024, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/17/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/17/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/17/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/17/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "c039c404dbd4adbc2eeb98c0a606a7914682739fad4bdcd2c789c199de950926", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/17/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "720df0e3745e9815fc8712b10904b1994f74a68bb543a03c31bd6dbe3cf51440", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}, {"url": "/docs/17/using-explain.html", "method": "same-major semantic node", "sha256": "610ae355c419b53a5e213a8c8e2eacbf34e4fa0ac8f6d27365071bc6d3c90278", "language": "zh", "matched_nodes": ["#USING-EXPLAIN/div[7]/p[24]/span[0]/span[0]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "Text search configuration nepali.", "/versions/17/facts/0/label": "Configuration", "/versions/17/facts/1/label": "Parser", "/versions/17/facts/1/value": "default", "/versions/17/tables/0/title": "Token-to-dictionary mappings", "/versions/17/related/0/label": "default parser", "/versions/17/sections/0/title": "Generated initdb definition", "/versions/17/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/17/tables/0/columns/0/label": "Token type", "/versions/17/tables/0/columns/1/label": "Order", "/versions/17/tables/0/columns/2/label": "Dictionary", "/versions/17/tables/0/rows/0/dictionary/text": "simple", "/versions/17/tables/0/rows/1/dictionary/text": "simple", "/versions/17/tables/0/rows/2/dictionary/text": "simple", "/versions/17/tables/0/rows/3/dictionary/text": "simple", "/versions/17/tables/0/rows/4/dictionary/text": "simple", "/versions/17/tables/0/rows/5/dictionary/text": "simple", "/versions/17/tables/0/rows/6/dictionary/text": "simple", "/versions/17/tables/0/rows/7/dictionary/text": "simple", "/versions/17/tables/0/rows/8/dictionary/text": "simple", "/versions/17/tables/0/rows/9/dictionary/text": "simple", "/versions/17/tables/0/rows/10/dictionary/text": "simple", "/versions/17/tables/0/rows/11/dictionary/text": "simple", "/versions/17/tables/0/rows/12/dictionary/text": "simple"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "fd6f51b8fdcc93662bf3942e08378ef2fe2c9fb196915ab851c54ae0b0bb47a0"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}, "18": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=18", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "catalog_fingerprint": "65c93d6048ef30e61023a84f9680fa6a92b1c383b7eb226741170077eb078502"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, {"url": "https://pg.center/docs/18/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 18 English manual", "sha256": "7957c03871a5f267f642ec609b2e3d1404eb000ccdef21ca0d1d8a8616110dc9", "language": "en", "original_url": "/docs/18/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2025, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/18/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/18/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/18/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/18/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "c1b7d16e812991b4d5fb68085a27c8ff82aeaffa34afda56c5837f9b7588187c", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/18/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "7f803d5b93ebfbc7277584f660e479e20eda950c121e0bb8a1e3ecd81268870c", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}, {"url": "/docs/18/using-explain.html", "method": "same-major semantic node", "sha256": "b8835ec9adbc70ec150667a6b5443f8d298222dc0cc8c2bd1abb1c1d64895904", "language": "zh", "matched_nodes": ["#USING-EXPLAIN/div[7]/p[24]/span[0]/span[0]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Text search configuration nepali.", "/versions/18/facts/0/label": "Configuration", "/versions/18/facts/1/label": "Parser", "/versions/18/facts/1/value": "default", "/versions/18/tables/0/title": "Token-to-dictionary mappings", "/versions/18/related/0/label": "default parser", "/versions/18/sections/0/title": "Generated initdb definition", "/versions/18/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/18/tables/0/columns/0/label": "Token type", "/versions/18/tables/0/columns/1/label": "Order", "/versions/18/tables/0/columns/2/label": "Dictionary", "/versions/18/tables/0/rows/0/dictionary/text": "simple", "/versions/18/tables/0/rows/1/dictionary/text": "simple", "/versions/18/tables/0/rows/2/dictionary/text": "simple", "/versions/18/tables/0/rows/3/dictionary/text": "simple", "/versions/18/tables/0/rows/4/dictionary/text": "simple", "/versions/18/tables/0/rows/5/dictionary/text": "simple", "/versions/18/tables/0/rows/6/dictionary/text": "simple", "/versions/18/tables/0/rows/7/dictionary/text": "simple", "/versions/18/tables/0/rows/8/dictionary/text": "simple", "/versions/18/tables/0/rows/9/dictionary/text": "simple", "/versions/18/tables/0/rows/10/dictionary/text": "simple", "/versions/18/tables/0/rows/11/dictionary/text": "simple", "/versions/18/tables/0/rows/12/dictionary/text": "simple"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "ee6e8ef93ac163fe11029ccb997354980b1954d1540ae84882dc44f10cc21a15"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}, "19": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=19", "text": "\u7b80\u5355"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=19", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=19", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=19", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=19", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=19", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=19", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=19", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v19beta4/postgresql-19beta4.tar.bz2", "label": "19beta4", "major": "19", "channel": "preview", "revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86", "source_sha256": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86", "catalog_fingerprint": "62fbf1a3689dbe8bf7e6b3372cfe6fbf867581427b3858a94c8419b77a4d2d1d"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v19beta4/postgresql-19beta4.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}, {"url": "https://pg.center/docs/19/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 19 English manual", "sha256": "89d047816e375228f2d4567d524efa447b563a1cd55e9fdf53481f0ab4ca1203", "language": "en", "original_url": "/docs/19/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2026, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/19/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/19/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/19/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/19/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "2f3186b0cb3f1b6cdfb964d581bdf7719277157a11db7b3a207830efc10fcf6c", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/19/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "71a0d298d5d8dd1314e07bb887fa3959b09cb79e6628fa1a71e94eb0ed9ca37f", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}, {"url": "/docs/19/using-explain.html", "method": "same-major semantic node", "sha256": "7cc78f59bf29afb1811ece53e9d5c572a3f634d66d7422fb8761f19bc6811492", "language": "zh", "matched_nodes": ["#USING-EXPLAIN/div[7]/p[24]/span[0]/span[0]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "Text search configuration nepali.", "/versions/19/facts/0/label": "Configuration", "/versions/19/facts/1/label": "Parser", "/versions/19/facts/1/value": "default", "/versions/19/tables/0/title": "Token-to-dictionary mappings", "/versions/19/related/0/label": "default parser", "/versions/19/sections/0/title": "Generated initdb definition", "/versions/19/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/19/tables/0/columns/0/label": "Token type", "/versions/19/tables/0/columns/1/label": "Order", "/versions/19/tables/0/columns/2/label": "Dictionary", "/versions/19/tables/0/rows/0/dictionary/text": "simple", "/versions/19/tables/0/rows/1/dictionary/text": "simple", "/versions/19/tables/0/rows/2/dictionary/text": "simple", "/versions/19/tables/0/rows/3/dictionary/text": "simple", "/versions/19/tables/0/rows/4/dictionary/text": "simple", "/versions/19/tables/0/rows/5/dictionary/text": "simple", "/versions/19/tables/0/rows/6/dictionary/text": "simple", "/versions/19/tables/0/rows/7/dictionary/text": "simple", "/versions/19/tables/0/rows/8/dictionary/text": "simple", "/versions/19/tables/0/rows/9/dictionary/text": "simple", "/versions/19/tables/0/rows/10/dictionary/text": "simple", "/versions/19/tables/0/rows/11/dictionary/text": "simple", "/versions/19/tables/0/rows/12/dictionary/text": "simple"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "124946f87cf19ff9dbfd4835e60b01b7cbc940b981039c9c8b3ab31c7a2b9bb4"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}, "20": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=20", "text": "\u7b80\u5355"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=20", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=20", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=20", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=20", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=20", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=20", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=20", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "20devel", "major": "20", "channel": "devel", "revision": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41", "source_sha256": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41", "catalog_fingerprint": "398fbb9f262264053c02fbf79f88be0a6770c1473faa6ecd5931d6ec41b8258b", "source_snapshot_utc": "26-Sep-2026 20:22"}, "sources": [{"url": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}, {"url": "https://pg.center/docs/devel/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 20 English manual", "sha256": "103fb0b6b1d46249a247532a5687300b13971bf4e52ffa6c3ca1bd71c4427d50", "language": "en", "original_url": "/docs/devel/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2026, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/devel/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/devel/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/devel/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/devel/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "adca05c5ff2b94562e292f0b81459187e8a41a57ab5781a5f22d721ec40aaa6c", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/devel/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "2528f707db4fbcbc63f279bceed743d15cc5599564e8882ddee1f19869cc3c3b", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}, {"url": "/docs/devel/using-explain.html", "method": "same-major semantic node", "sha256": "2744ee0e88d132c504bf5e102765edaabd393eb12c59294093db6d90b26dd65c", "language": "zh", "matched_nodes": ["#USING-EXPLAIN/div[7]/p[24]/span[0]/span[0]"]}], "language": "zh", "original_text": {"/summary": "Text search configuration nepali.", "/category": "Configurations", "/versions/20/description/0": "Text search configuration nepali.", "/versions/20/facts/0/label": "Configuration", "/versions/20/facts/1/label": "Parser", "/versions/20/facts/1/value": "default", "/versions/20/tables/0/title": "Token-to-dictionary mappings", "/versions/20/related/0/label": "default parser", "/versions/20/sections/0/title": "Generated initdb definition", "/versions/20/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/20/tables/0/columns/0/label": "Token type", "/versions/20/tables/0/columns/1/label": "Order", "/versions/20/tables/0/columns/2/label": "Dictionary", "/versions/20/tables/0/rows/0/dictionary/text": "simple", "/versions/20/tables/0/rows/1/dictionary/text": "simple", "/versions/20/tables/0/rows/2/dictionary/text": "simple", "/versions/20/tables/0/rows/3/dictionary/text": "simple", "/versions/20/tables/0/rows/4/dictionary/text": "simple", "/versions/20/tables/0/rows/5/dictionary/text": "simple", "/versions/20/tables/0/rows/6/dictionary/text": "simple", "/versions/20/tables/0/rows/7/dictionary/text": "simple", "/versions/20/tables/0/rows/8/dictionary/text": "simple", "/versions/20/tables/0/rows/9/dictionary/text": "simple", "/versions/20/tables/0/rows/10/dictionary/text": "simple", "/versions/20/tables/0/rows/11/dictionary/text": "simple", "/versions/20/tables/0/rows/12/dictionary/text": "simple"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "897ea6526851090d8d20a58a25af81a0644e78b9036e97c47a13c718ce9673ee"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}}}, "snapshot": {"facts": [{"label": "\u914d\u7f6e", "value": "nepali"}, {"label": "\u89e3\u6790\u5668", "value": "\u9ed8\u8ba4"}], "tables": [{"key": "mappings", "rows": [{"token": "email", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "url", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "url_path", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "host", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "file", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "version", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "sfloat", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "float", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "int", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "uint", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "numword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "hword_numpart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "numhword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-simple/?v=18", "text": "\u7b80\u5355"}}, {"token": "asciiword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "hword_asciipart", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "asciihword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "word", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "hword_part", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}, {"token": "hword", "sequence": "1", "dictionary": {"url": "/wiki/fts/dictionary-nepali_stem/?v=18", "text": "nepali_stem"}}], "title": "\u8bcd\u5143\u5230\u8bcd\u5178\u7684\u6620\u5c04", "columns": [{"key": "token", "label": "\u8bcd\u5143\u7c7b\u578b"}, {"key": "sequence", "label": "\u987a\u5e8f"}, {"key": "dictionary", "label": "\u8bcd\u5178"}]}], "aliases": [], "related": [{"url": "/wiki/fts/parser-default/?v=18", "label": "\u9ed8\u8ba4\u89e3\u6790\u5668"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "catalog_fingerprint": "65c93d6048ef30e61023a84f9680fa6a92b1c383b7eb226741170077eb078502"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, {"url": "https://pg.center/docs/18/textsearch-configuration.html", "path": "textsearch-configuration.html", "label": "PostgreSQL 18 English manual", "sha256": "7957c03871a5f267f642ec609b2e3d1404eb000ccdef21ca0d1d8a8616110dc9", "language": "en", "original_url": "/docs/18/textsearch-configuration.html"}], "mappings": [{"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}], "sections": [{"code": "/*\n * text search configuration for nepali language\n *\n * Copyright (c) 2007-2025, PostgreSQL Global Development Group\n *\n * src/backend/snowball/snowball.sql.in\n *\n * nepali and certain other macros are replaced for each language;\n * see the Makefile for details.\n *\n * Note: this file is read in single-user -j mode, which means that the\n * command terminator is semicolon-newline-newline; whenever the backend\n * sees that, it stops and executes what it's got.  If you write a lot of\n * statements without empty lines between, they'll all get quoted to you\n * in any error message about one of them, so don't do that.  Also, you\n * cannot write a semicolon immediately followed by an empty line in a\n * string literal (including a function body!) or a multiline comment.\n */\n\nCREATE TEXT SEARCH DICTIONARY nepali_stem\n\t(TEMPLATE = snowball, Language = nepali , StopWords=nepali);\n\nCOMMENT ON TEXT SEARCH DICTIONARY nepali_stem IS 'snowball stemmer for nepali language';\n\nCREATE TEXT SEARCH CONFIGURATION nepali\n\t(PARSER = default);\n\nCOMMENT ON TEXT SEARCH CONFIGURATION nepali IS 'configuration for nepali language';\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n\tFOR email, url, url_path, host, file, version,\n\t    sfloat, float, int, uint,\n\t    numword, hword_numpart, numhword\n\tWITH simple;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR asciiword, hword_asciipart, asciihword\n\tWITH nepali_stem;\n\nALTER TEXT SEARCH CONFIGURATION nepali ADD MAPPING\n    FOR word, hword_part, hword\n\tWITH nepali_stem;", "title": "initdb \u751f\u6210\u7684\u5b9a\u4e49", "paragraphs": ["\u6839\u636e\u6b64\u7248\u672c\u7684 Snowball \u8bed\u8a00\u5217\u8868\u548c SQL \u6a21\u677f\u751f\u6210\u3002"]}], "signature": "", "attributes": {"parser": "default", "configuration": "nepali"}, "description": ["\u5168\u6587\u68c0\u7d22\u914d\u7f6e nepali\u3002"], "manual_html": "<div class=\"sect1\" id=\"TEXTSEARCH-CONFIGURATION\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">12.7.\u00a0\u914d\u7f6e\u793a\u4f8b </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6307\u5b9a\u4e86\u5c06\u4e00\u4e2a\u6587\u6863\u8f6c\u6362\u6210\u4e00\u4e2a<code class=\"type\">tsvector</code>\u6240\u9700\u7684\u6240\u6709\u9009\u9879\uff1a\u7528\u4e8e\u628a\u6587\u672c\u5206\u89e3\u6210\u8bcd\u5143\u7684\u89e3\u6790\u5668\uff0c\u4ee5\u53ca\u7528\u4e8e\u5c06\u6bcf\u4e00\u4e2a\u8bcd\u5143\u8f6c\u6362\u6210\u8bcd\u4f4d\u7684\u8bcd\u5178\u3002\u6bcf\u4e00\u6b21<code class=\"function\">to_tsvector</code>\u6216<code class=\"function\">to_tsquery</code>\u7684\u8c03\u7528\u90fd\u9700\u8981\u4e00\u4e2a\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u6765\u6267\u884c\u5176\u5904\u7406\u3002\u914d\u7f6e\u53c2\u6570<a class=\"xref\" href=\"/docs/18/runtime-config-client.html#GUC-DEFAULT-TEXT-SEARCH-CONFIG\">default_text_search_config</a>\u6307\u5b9a\u4e86\u9ed8\u8ba4\u914d\u7f6e\u7684\u540d\u79f0\uff0c\u5982\u679c\u7701\u7565\u4e86\u663e\u5f0f\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6587\u672c\u68c0\u7d22\u51fd\u6570\u5c06\u4f1a\u4f7f\u7528\u5b83\u3002\u5b83\u53ef\u4ee5\u5728<code class=\"filename\">postgresql.conf</code>\u4e2d\u8bbe\u7f6e\uff0c\u6216\u8005\u4f7f\u7528<code class=\"command\">SET</code>\u547d\u4ee4\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u4f1a\u8bdd\u8bbe\u7f6e\u3002</p>\n<p lang=\"zh\">\u6709\u4e00\u4e9b\u9884\u5b9a\u4e49\u7684\u6587\u672c\u68c0\u7d22\u914d\u7f6e\u53ef\u7528\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u5bb9\u6613\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u3002\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u7ec4<acronym class=\"acronym\">SQL</acronym>\u547d\u4ee4\uff0c\u5e76\u4e14\u6709\u591a\u4e2a<span class=\"application\">psql</span>\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u6709\u5173\u6587\u672c\u68c0\u7d22\u5bf9\u8c61\uff08<a class=\"xref\" href=\"/docs/18/textsearch-psql.html\" title=\"12.10.\u00a0psql \u652f\u6301\">\u7b2c\u00a012.10\u00a0\u8282</a>\uff09\u7684\u4fe1\u606f\u3002</p>\n<p lang=\"zh\">\u4f5c\u4e3a\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e<code class=\"literal\">pg</code>\uff0c\u4ece\u590d\u5236\u5185\u7f6e\u7684<code class=\"literal\">english</code>\u914d\u7f6e\u5f00\u59cb\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a PostgreSQL \u76f8\u5173\u7684\u540c\u4e49\u8bcd\u5217\u8868\uff0c\u5e76\u5c06\u5b83\u5b58\u50a8\u5728<code class=\"filename\">$SHAREDIR/tsearch_data/pg_dict.syn</code>\u4e2d\u3002\u6587\u4ef6\u5185\u5bb9\u770b\u8d77\u6765\u50cf\uff1a</p>\n<pre class=\"programlisting\">postgres    pg\npgsql       pg\npostgresql  pg\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u5b9a\u4e49\u540c\u4e49\u8bcd\u8bcd\u5178\u5982\u4e0b\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY pg_dict (\n    TEMPLATE = synonym,\n    SYNONYMS = pg_dict\n);\n</pre>\n<p lang=\"zh\">\u63a5\u4e0b\u6765\u6211\u4eec\u6ce8\u518c<span class=\"productname\">Ispell</span>\u8bcd\u5178<code class=\"literal\">english_ispell</code>\uff0c\u5b83\u6709\u5176\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff1a</p>\n<pre class=\"programlisting\">CREATE TEXT SEARCH DICTIONARY english_ispell (\n    TEMPLATE = ispell,\n    DictFile = english,\n    AffFile = english,\n    StopWords = english\n);\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5728\u914d\u7f6e<code class=\"literal\">pg</code>\u4e2d\u5efa\u7acb\u8bcd\u7684\u6620\u5c04\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,\n                      word, hword, hword_part\n    WITH pg_dict, english_ispell, english_stem;\n</pre>\n<p lang=\"zh\">\u6211\u4eec\u9009\u62e9\u4e0d\u7d22\u5f15\u6216\u641c\u7d22\u67d0\u4e9b\u5185\u7f6e\u914d\u7f6e\u786e\u5b9e\u5904\u7406\u7684\u8bcd\u5143\u7c7b\u578b\uff1a</p>\n<pre class=\"programlisting\">ALTER TEXT SEARCH CONFIGURATION pg\n    DROP MAPPING FOR email, url, url_path, sfloat, float;\n</pre>\n<p lang=\"zh\">\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5\u6211\u4eec\u7684\u914d\u7f6e\uff1a</p>\n<pre class=\"programlisting\">SELECT * FROM ts_debug('public.pg', '\nPostgreSQL, the highly scalable, SQL compliant, open source object-relational\ndatabase management system, is now undergoing beta testing of the next\nversion of our software.\n');\n</pre>\n<p lang=\"zh\">\u4e0b\u4e00\u6b65\u662f\u628a\u4f1a\u8bdd\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u8fd9\u4e2a\u65b0\u914d\u7f6e\uff0c\u8be5\u914d\u7f6e\u662f\u5728 <code class=\"literal\">public</code> \u6a21\u5f0f\u4e2d\u521b\u5efa\u7684\uff1a</p>\n<pre class=\"screen\">=&gt; \\dF\n   List of text search configurations\n Schema  | Name | Description\n---------+------+-------------\n public  | pg   |\n\nSET default_text_search_config = 'public.pg';\nSET\n\nSHOW default_text_search_config;\n default_text_search_config\n----------------------------\n public.pg\n</pre>\n</div>", "manual_path": "/docs/18/textsearch-configuration.html", "localization": {"status": "complete", "sources": [{"url": "/docs/18/catalog-pg-amproc.html", "method": "same-major semantic node", "sha256": "c1b7d16e812991b4d5fb68085a27c8ff82aeaffa34afda56c5837f9b7588187c", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMPROC/p[5]/span[2]/span[0]"]}, {"url": "/docs/18/textsearch-configuration.html", "method": "same-major semantic node", "sha256": "7f803d5b93ebfbc7277584f660e479e20eda950c121e0bb8a1e3ecd81268870c", "language": "zh", "matched_nodes": ["#TEXTSEARCH-CONFIGURATION/div[0]", "#TEXTSEARCH-CONFIGURATION/p[11]", "#TEXTSEARCH-CONFIGURATION/p[13]", "#TEXTSEARCH-CONFIGURATION/p[15]", "#TEXTSEARCH-CONFIGURATION/p[17]", "#TEXTSEARCH-CONFIGURATION/p[1]", "#TEXTSEARCH-CONFIGURATION/p[2]", "#TEXTSEARCH-CONFIGURATION/p[3]", "#TEXTSEARCH-CONFIGURATION/p[5]", "#TEXTSEARCH-CONFIGURATION/p[7]", "#TEXTSEARCH-CONFIGURATION/p[9]"]}, {"url": "/docs/18/using-explain.html", "method": "same-major semantic node", "sha256": "b8835ec9adbc70ec150667a6b5443f8d298222dc0cc8c2bd1abb1c1d64895904", "language": "zh", "matched_nodes": ["#USING-EXPLAIN/div[7]/p[24]/span[0]/span[0]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Text search configuration nepali.", "/versions/18/facts/0/label": "Configuration", "/versions/18/facts/1/label": "Parser", "/versions/18/facts/1/value": "default", "/versions/18/tables/0/title": "Token-to-dictionary mappings", "/versions/18/related/0/label": "default parser", "/versions/18/sections/0/title": "Generated initdb definition", "/versions/18/sections/0/paragraphs/0": "Generated from this release\u2019s Snowball language list and SQL template.", "/versions/18/tables/0/columns/0/label": "Token type", "/versions/18/tables/0/columns/1/label": "Order", "/versions/18/tables/0/columns/2/label": "Dictionary", "/versions/18/tables/0/rows/0/dictionary/text": "simple", "/versions/18/tables/0/rows/1/dictionary/text": "simple", "/versions/18/tables/0/rows/2/dictionary/text": "simple", "/versions/18/tables/0/rows/3/dictionary/text": "simple", "/versions/18/tables/0/rows/4/dictionary/text": "simple", "/versions/18/tables/0/rows/5/dictionary/text": "simple", "/versions/18/tables/0/rows/6/dictionary/text": "simple", "/versions/18/tables/0/rows/7/dictionary/text": "simple", "/versions/18/tables/0/rows/8/dictionary/text": "simple", "/versions/18/tables/0/rows/9/dictionary/text": "simple", "/versions/18/tables/0/rows/10/dictionary/text": "simple", "/versions/18/tables/0/rows/11/dictionary/text": "simple", "/versions/18/tables/0/rows/12/dictionary/text": "simple"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "ee6e8ef93ac163fe11029ccb997354980b1954d1540ae84882dc44f10cc21a15"}, "comparison_data": {"parser": "default", "mappings": [{"token": "asciihword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "asciiword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "email", "sequence": "1", "dictionary": "simple"}, {"token": "file", "sequence": "1", "dictionary": "simple"}, {"token": "float", "sequence": "1", "dictionary": "simple"}, {"token": "host", "sequence": "1", "dictionary": "simple"}, {"token": "hword", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_asciipart", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "hword_numpart", "sequence": "1", "dictionary": "simple"}, {"token": "hword_part", "sequence": "1", "dictionary": "nepali_stem"}, {"token": "int", "sequence": "1", "dictionary": "simple"}, {"token": "numhword", "sequence": "1", "dictionary": "simple"}, {"token": "numword", "sequence": "1", "dictionary": "simple"}, {"token": "sfloat", "sequence": "1", "dictionary": "simple"}, {"token": "uint", "sequence": "1", "dictionary": "simple"}, {"token": "url", "sequence": "1", "dictionary": "simple"}, {"token": "url_path", "sequence": "1", "dictionary": "simple"}, {"token": "version", "sequence": "1", "dictionary": "simple"}, {"token": "word", "sequence": "1", "dictionary": "nepali_stem"}]}, "comparison_hash": "2d7821e3e00b02b6a24cf2bcc662eea8e82719a83a95a7f0c75f1c274d54ea97", "manual_language": "zh"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}