{"Entry":{"collection":"func","key":"ts-parse","name":"ts_parse","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.3"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"b693aa0cc492b3bfe10be1efd0f0fc987b312bab8a63e5dc03be87ca4d4b1001","first_version":"8.3","group":"textsearch","group_label":"Text Search Functions And Operators","groups":["textsearch"],"imported_at":"2026-09-27T17:57:28.726472+08:00","last_version":"20","name":"ts_parse","name_key":"ts_parse","position":12017,"present_in":["8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"ts_parse ( parser_name text, document text ) → setof record ( tokid integer, token text )","signature_count":2,"slug":"ts-parse","source_rev":"b7bd9cda","summary":"Extracts tokens from the document using the named parser.","summary_zh":""}},"Definition":{"Collection":"func","Key":"ts-parse","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"ts-parse","SourceRevision":"b7bd9cda","Facts":{"description":"Extracts tokens from the document using the named parser. See Section 12.8.2 for details.","description_html":"Extracts tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e using the named parser. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","doc":{"anchor":"TEXTSEARCH-FUNCTIONS-DEBUG-TABLE","file":"functions-textsearch.html","slug":"18"},"group":"textsearch","group_label":"Text Search Functions And Operators","lang":"en","layout":"table-new","pages":["functions-textsearch.html"],"prose_only":false,"signatures":[{"description":"Extracts tokens from the document using the named parser. See Section 12.8.2 for details.","description_html":"Extracts tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e using the named parser. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[{"expr":"ts_parse('default', 'foo - bar')","result":"(1,foo) ..."}],"html":"\u003ccode class=\"function\"\u003ets_parse\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eparser_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etokid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etoken\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e )","returns":"setof record","text":"ts_parse ( parser_name text, document text ) → setof record ( tokid integer, token text )","zh_from":""},{"description":"Extracts tokens from the document using a parser specified by OID. See Section 12.8.2 for details.","description_html":"Extracts tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e using a parser specified by OID. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[{"expr":"ts_parse(3722, 'foo - bar')","result":"(1,foo) ..."}],"html":"\u003ccode class=\"function\"\u003ets_parse\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eparser_oid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etokid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etoken\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e )","returns":"setof record","text":"ts_parse ( parser_oid oid, document text ) → setof record ( tokid integer, token text )","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"TEXTSEARCH-FUNCTIONS-DEBUG-TABLE","file":"functions-textsearch.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"ts-parse","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"ts_parse","Summary":"使用指定名称的解析器从document中提取词元。详情参见第 12.8.2 节。","BodyHTML":"使用指定名称的解析器从\u003cem\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e中提取词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" rel=\"nofollow\"\u003e第 12.8.2 节\u003c/a\u003e。\u003cpre\u003ets_parse ( parser_name text, document text ) → setof record ( tokid integer, token text )\u003c/pre\u003e使用指定名称的解析器从\u003cem\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e中提取词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" rel=\"nofollow\"\u003e第 12.8.2 节\u003c/a\u003e。\u003cpre\u003ets_parse ( parser_oid oid, document text ) → setof record ( tokid integer, token text )\u003c/pre\u003e使用 OID 指定的解析器从\u003cem\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e中提取词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" rel=\"nofollow\"\u003e第 12.8.2 节\u003c/a\u003e。","SourceRevision":"ca936764","ContentHash":"1a3a5434170625919814b7e181e71f4f0e8bf66a0e6a300c26894340a05555d7","Payload":{"description_zh":"使用指定名称的解析器从document中提取词元。详情参见第 12.8.2 节。","description_zh_html":"使用指定名称的解析器从\u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e中提取词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. 解析器测试\"\u003e第 12.8.2 节\u003c/a\u003e。","signatures":[{"description_zh":"使用指定名称的解析器从document中提取词元。详情参见第 12.8.2 节。","description_zh_html":"使用指定名称的解析器从\u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e中提取词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. 解析器测试\"\u003e第 12.8.2 节\u003c/a\u003e。","returns":"setof record","text":"ts_parse ( parser_name text, document text ) → setof record ( tokid integer, token text )","zh_from":"doc"},{"description_zh":"使用 OID 指定的解析器从document中提取词元。详情参见第 12.8.2 节。","description_zh_html":"使用 OID 指定的解析器从\u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e中提取词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. 解析器测试\"\u003e第 12.8.2 节\u003c/a\u003e。","returns":"setof record","text":"ts_parse ( parser_oid oid, document text ) → setof record ( tokid integer, token text )","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"89e8c044846d83aa3c2a3b46e2c072d24a283ea403b8168586cf02ade712ea44","Text":"ts_parse ( parser_name text, document text ) → setof record ( tokid integer, token text )","Returns":"setof record","Payload":{"description":"Extracts tokens from the document using the named parser. See Section 12.8.2 for details.","description_html":"Extracts tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e using the named parser. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[{"expr":"ts_parse('default', 'foo - bar')","result":"(1,foo) ..."}],"html":"\u003ccode class=\"function\"\u003ets_parse\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eparser_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etokid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etoken\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e )","returns":"setof record","text":"ts_parse ( parser_name text, document text ) → setof record ( tokid integer, token text )","zh_from":""}},{"Version":"18","Ordinal":1,"Hash":"998f56c870ca7f5c30d25807bf3a7095f0b5d24f16c1314d0be6845ed10ca879","Text":"ts_parse ( parser_oid oid, document text ) → setof record ( tokid integer, token text )","Returns":"setof record","Payload":{"description":"Extracts tokens from the document using a parser specified by OID. See Section 12.8.2 for details.","description_html":"Extracts tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e using a parser specified by OID. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[{"expr":"ts_parse(3722, 'foo - bar')","result":"(1,foo) ..."}],"html":"\u003ccode class=\"function\"\u003ets_parse\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eparser_oid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etokid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etoken\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e )","returns":"setof record","text":"ts_parse ( parser_oid oid, document text ) → setof record ( tokid integer, token text )","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
