{
    "content": [
        {
            "type": "text",
            "text": "# CREATE_TEXT_SEARCH_TEMPLATE (man)\n\n## NAME\n\nCREATETEXTSEARCHTEMPLATE - define a new text search template\n\n## SYNOPSIS\n\nCREATE TEXT SEARCH TEMPLATE name (\n[ INIT = initfunction , ]\nLEXIZE = lexizefunction\n)\n\n## DESCRIPTION\n\nCREATE TEXT SEARCH TEMPLATE creates a new text search template. Text search templates define\nthe functions that implement text search dictionaries. A template is not useful by itself,\nbut must be instantiated as a dictionary to be used. The dictionary typically specifies\nparameters to be given to the template functions.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **PARAMETERS**\n- **COMPATIBILITY**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "CREATE_TEXT_SEARCH_TEMPLATE",
        "section": "",
        "mode": "man",
        "summary": "CREATETEXTSEARCHTEMPLATE - define a new text search template",
        "synopsis": "CREATE TEXT SEARCH TEMPLATE name (\n[ INIT = initfunction , ]\nLEXIZE = lexizefunction\n)",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "ALTERTEXTSEARCHTEMPLATE",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ALTERTEXTSEARCHTEMPLATE/7/json"
            },
            {
                "name": "DROPTEXTSEARCHTEMPLATE",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/DROPTEXTSEARCHTEMPLATE/7/json"
            },
            {
                "name": "TEMPLATE",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/TEMPLATE/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "CREATETEXTSEARCHTEMPLATE - define a new text search template\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "CREATE TEXT SEARCH TEMPLATE name (\n[ INIT = initfunction , ]\nLEXIZE = lexizefunction\n)\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "CREATE TEXT SEARCH TEMPLATE creates a new text search template. Text search templates define\nthe functions that implement text search dictionaries. A template is not useful by itself,\nbut must be instantiated as a dictionary to be used. The dictionary typically specifies\nparameters to be given to the template functions.\n\nIf a schema name is given then the text search template is created in the specified schema.\nOtherwise it is created in the current schema.\n\nYou must be a superuser to use CREATE TEXT SEARCH TEMPLATE. This restriction is made because\nan erroneous text search template definition could confuse or even crash the server. The\nreason for separating templates from dictionaries is that a template encapsulates the\n“unsafe” aspects of defining a dictionary. The parameters that can be set when defining a\ndictionary are safe for unprivileged users to set, and so creating a dictionary need not be a\nprivileged operation.\n\nRefer to Chapter 12 for further information.\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "name\nThe name of the text search template to be created. The name can be schema-qualified.\n\ninitfunction\nThe name of the init function for the template.\n\nlexizefunction\nThe name of the lexize function for the template.\n\nThe function names can be schema-qualified if necessary. Argument types are not given, since\nthe argument list for each type of function is predetermined. The lexize function is\nrequired, but the init function is optional.\n\nThe arguments can appear in any order, not only the one shown above.\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "There is no CREATE TEXT SEARCH TEMPLATE statement in the SQL standard.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "ALTER TEXT SEARCH TEMPLATE (ALTERTEXTSEARCHTEMPLATE(7)), DROP TEXT SEARCH TEMPLATE\n(DROPTEXTSEARCHTEMPLATE(7))\n\nPostgreSQL 16.14                                2026                  CREATE TEXT SEARCH TEMPLATE(7)",
                "subsections": []
            }
        }
    }
}