{"Entry":{"collection":"func","key":"to-tsquery","name":"to_tsquery","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":"7031ad3ba4ff1ad76efc046f8a50acb55d936645c3e79064753ae32284baa776","derived_content_hash":"9afbc4f4fa0e696850a0a2333a19c3a986371ecfaa86ea3cdecf484fe1e95eed","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:5b43617acccbe36cb0b81f7f7d8c5ce5a32141663d47fa0ad035740b8dd668f7","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"8.3","group":"textsearch","group_label":"Text Search Functions And Operators","groups":["textsearch"],"imported_at":"2026-09-27T17:57:28.709792+08:00","last_version":"20","name":"to_tsquery","name_key":"to_tsquery","position":12010,"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"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:bce83dd28e6a5fd778aeef4528f1a8732c11e2eacf9b553bbff2dc96712a9548","receipt_sha256":"c8cc059bbab9243c74d96a07033df4e057b6490d35930169fb8c9fe2d68ac1ec","repair":"wiki-repair-20261023"},"signature":"to_tsquery ( [ config regconfig, ] query text ) → tsquery","signature_count":1,"slug":"to-tsquery","source_rev":"wiki-repair-20261023:5b43617acccbe36cb0b81f7f7d8c5ce5a32141663d47fa0ad035740b8dd668f7","summary":"Converts text to a tsquery, normalizing words according to the specified or default configuration.","summary_zh":""}},"Definition":{"Collection":"func","Key":"to-tsquery","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"to-tsquery","SourceRevision":"wiki-repair-20261023:5b43617acccbe36cb0b81f7f7d8c5ce5a32141663d47fa0ad035740b8dd668f7","Facts":{"description":"Converts text to a tsquery, normalizing words according to the specified or default configuration. The words must be combined by valid tsquery operators.","description_html":"Converts text to a \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e, normalizing words according to the specified or default configuration. The words must be combined by valid \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e operators.","description_zh":"将文本转换为 tsquery，根据指定的或默认配置对单词进行正规化。单词必须由有效的 tsquery 操作符组合。","description_zh_html":"将文本转换为 \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e，根据指定的或默认配置对单词进行正规化。单词必须由有效的 \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e 操作符组合。","doc":{"anchor":"TEXTSEARCH-FUNCTIONS-TABLE","file":"functions-textsearch.html","sha256":"2383d74fd6eee4b71e1b97dec9754623081103120b67a9793f8deac5fff77727","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-textsearch.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"2383d74fd6eee4b71e1b97dec9754623081103120b67a9793f8deac5fff77727","version":"18.7"},{"file":"functions-textsearch.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"d8d1661c6d67bb109c5266be16236950471c11d91181aafa96e9055792c4fa78","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"textsearch","group_label":"文本搜索函数和操作符","lang":"en","layout":"table-new","pages":["functions-textsearch.html"],"prose_only":false,"signatures":[{"description":"Converts text to a tsquery, normalizing words according to the specified or default configuration. The words must be combined by valid tsquery operators.","description_html":"Converts text to a \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e, normalizing words according to the specified or default configuration. The words must be combined by valid \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e operators.","description_zh":"将文本转换为 tsquery，根据指定的或默认配置对单词进行正规化。单词必须由有效的 tsquery 操作符组合。","description_zh_html":"将文本转换为 \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e，根据指定的或默认配置对单词进行正规化。单词必须由有效的 \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e 操作符组合。","examples":[{"expr":"to_tsquery('english', 'The \u0026 Fat \u0026 Rats')","result":"'fat' \u0026 'rat'"}],"html":"\u003ccode class=\"function\"\u003eto_tsquery\u003c/code\u003e ( [\u003cspan class=\"optional\"\u003e\u003cem class=\"parameter\"\u003e\u003ccode\u003econfig\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregconfig\u003c/code\u003e, \u003c/span\u003e] \u003cem class=\"parameter\"\u003e\u003ccode\u003equery\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etsquery\u003c/code\u003e","returns":"tsquery","text":"to_tsquery ( [config regconfig, ] query text ) → tsquery","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-textsearch.html","sha256":"8401bb0d06633da86885cceee001a41a7bc026a1e7cb38731a171ec09f7e10a4"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"TEXTSEARCH-FUNCTIONS-TABLE","file":"functions-textsearch.html","sha256":"2383d74fd6eee4b71e1b97dec9754623081103120b67a9793f8deac5fff77727","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-tsquery","SourceDatabase":"center","Version":"18","Locale":"en","Title":"to_tsquery","Summary":"Converts text to a tsquery, normalizing words according to the specified or default configuration. The words must be combined by valid tsquery operators.","BodyHTML":"Converts text to a \u003ccode\u003etsquery\u003c/code\u003e, normalizing words according to the specified or default configuration. The words must be combined by valid \u003ccode\u003etsquery\u003c/code\u003e operators.","SourceRevision":"wiki-repair-20261023:5b43617acccbe36cb0b81f7f7d8c5ce5a32141663d47fa0ad035740b8dd668f7","ContentHash":"8666eb402e9510b7af82b45aaeae71d3b796ad30a540e3ce0ee4e1baabf47834","Payload":{"description":"Converts text to a tsquery, normalizing words according to the specified or default configuration. The words must be combined by valid tsquery operators.","description_html":"Converts text to a \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e, normalizing words according to the specified or default configuration. The words must be combined by valid \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e operators.","signatures":[{"description":"Converts text to a tsquery, normalizing words according to the specified or default configuration. The words must be combined by valid tsquery operators.","description_html":"Converts text to a \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e, normalizing words according to the specified or default configuration. The words must be combined by valid \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e operators.","description_zh":"将文本转换为 tsquery，根据指定的或默认配置对单词进行正规化。单词必须由有效的 tsquery 操作符组合。","description_zh_html":"将文本转换为 \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e，根据指定的或默认配置对单词进行正规化。单词必须由有效的 \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e 操作符组合。","examples":[{"expr":"to_tsquery('english', 'The \u0026 Fat \u0026 Rats')","result":"'fat' \u0026 'rat'"}],"html":"\u003ccode class=\"function\"\u003eto_tsquery\u003c/code\u003e ( [\u003cspan class=\"optional\"\u003e\u003cem class=\"parameter\"\u003e\u003ccode\u003econfig\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregconfig\u003c/code\u003e, \u003c/span\u003e] \u003cem class=\"parameter\"\u003e\u003ccode\u003equery\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etsquery\u003c/code\u003e","returns":"tsquery","text":"to_tsquery ( [config regconfig, ] query text ) → tsquery","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","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":"d7c87624a926b8425c8194342b98c98bece1ab8ddcd1bd98c05206b96fa28f9b","Text":"to_tsquery ( [config regconfig, ] query text ) → tsquery","Returns":"tsquery","Payload":{"description":"Converts text to a tsquery, normalizing words according to the specified or default configuration. The words must be combined by valid tsquery operators.","description_html":"Converts text to a \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e, normalizing words according to the specified or default configuration. The words must be combined by valid \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e operators.","description_zh":"将文本转换为 tsquery，根据指定的或默认配置对单词进行正规化。单词必须由有效的 tsquery 操作符组合。","description_zh_html":"将文本转换为 \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e，根据指定的或默认配置对单词进行正规化。单词必须由有效的 \u003ccode class=\"type\"\u003etsquery\u003c/code\u003e 操作符组合。","examples":[{"expr":"to_tsquery('english', 'The \u0026 Fat \u0026 Rats')","result":"'fat' \u0026 'rat'"}],"html":"\u003ccode class=\"function\"\u003eto_tsquery\u003c/code\u003e ( [\u003cspan class=\"optional\"\u003e\u003cem class=\"parameter\"\u003e\u003ccode\u003econfig\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregconfig\u003c/code\u003e, \u003c/span\u003e] \u003cem class=\"parameter\"\u003e\u003ccode\u003equery\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etsquery\u003c/code\u003e","returns":"tsquery","text":"to_tsquery ( [config regconfig, ] query text ) → tsquery","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
