pgadmin4/docs/en_US/fts_template_dialog.rst

66 lines
2.2 KiB
ReStructuredText
Raw Normal View History

2016-06-21 03:06:44 -05:00
.. _fts_template_dialog:
2016-05-13 08:43:57 -05:00
2018-06-15 03:14:12 -05:00
****************************
`FTS Template Dialog`:index:
****************************
2016-05-13 08:43:57 -05:00
Use the *FTS Template* dialog to create a new text search template. A text
search template defines the functions that implement text search dictionaries.
2016-05-13 08:43:57 -05:00
The *FTS Template* dialog organizes the development of a text search Template
through the following dialog tabs: *General*, and *Definition*. The *SQL* tab
displays the SQL code generated by dialog selections.
2016-05-13 08:43:57 -05:00
2016-05-20 15:39:21 -05:00
.. image:: images/fts_template_general.png
:alt: FTS template dialog general tab
:align: center
2016-05-13 08:43:57 -05:00
Use the fields in the *General* tab to identify a template:
* Use the *Name* field to add a descriptive name for the template. The name will
be displayed in the *pgAdmin* tree control.
* Select the name of the schema in which the template will reside from the
drop-down listbox in the *Schema* field.
2016-05-24 07:47:35 -05:00
* Store notes about the template in the *Comment* field.
2016-05-13 08:43:57 -05:00
Click the *Definition* tab to continue.
2016-05-20 15:39:21 -05:00
.. image:: images/fts_template_definition.png
:alt: FTS template dialog definition tab
:align: center
2016-05-13 08:43:57 -05:00
Use the fields in the *Definition* tab to define function parameters:
* Use the drop-down listbox next to *Init function* to select the name of the
init function for the template. The init function is optional.
* Use the drop-down listbox next to *Lexize function* to select the name of the
lexize function for the template. The lexize function is required.
2016-05-13 08:43:57 -05:00
Click the *SQL* tab to continue.
Your entries in the *FTS Template* dialog generate a SQL command (see an example
below). Use the *SQL* tab for review; revisit or switch tabs to make any changes
to the SQL command.
2016-05-24 07:47:35 -05:00
Example
*******
2016-05-24 07:47:35 -05:00
The following is an example of the sql command generated by user selections in
the *FTS Template* dialog:
2016-05-24 07:47:35 -05:00
2016-05-20 15:39:21 -05:00
.. image:: images/fts_template_sql.png
:alt: FTS template dialog sql tab
:align: center
The example shown demonstrates creating a fts template named *eng.template* that
uses the ispell dictionary.
2016-05-13 08:43:57 -05:00
* Click the *Info* button (i) to access online help.
2016-05-13 08:43:57 -05:00
* Click the *Save* button to save work.
* Click the *Close* button to exit without saving work.
2016-05-13 08:43:57 -05:00
* Click the *Reset* button to restore configuration parameters.