2016-06-21 03:06:44 -05:00
|
|
|
.. _fts_configuration_dialog:
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2018-06-15 03:14:12 -05:00
|
|
|
*********************************
|
2019-03-08 09:29:05 -06:00
|
|
|
`FTS Configuration Dialog`:index:
|
2018-06-15 03:14:12 -05:00
|
|
|
*********************************
|
2018-01-11 10:58:30 -06:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Use the *FTS Configuration* dialog to configure a full text search. A text
|
|
|
|
search configuration specifies a text search parser that can divide a string
|
|
|
|
into tokens, along with dictionaries that can identify searchable tokens.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
The *FTS Configuration* dialog organizes the development of a FTS configuration
|
|
|
|
through the following dialog tabs: "*General*, *Definition*, and *Tokens*. The
|
|
|
|
*SQL* tab displays the SQL code generated by dialog selections.
|
2018-01-11 10:58:30 -06:00
|
|
|
|
2016-05-26 09:29:33 -05:00
|
|
|
Click the *General* tab to begin.
|
|
|
|
|
|
|
|
.. image:: images/fts_configuration_general.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: FTS configuration dialog general tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2016-05-26 09:29:33 -05:00
|
|
|
|
|
|
|
Use the fields in the *General* tab to identify a FTS configuration:
|
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
* Use the *Name* field to add a descriptive name for the FTS configuration. The
|
|
|
|
name will be displayed in the *pgAdmin* tree control.
|
|
|
|
* Use the drop-down listbox next to *Owner* to specify the role that will own
|
|
|
|
the configuration.
|
|
|
|
* Select the name of the schema in which the FTS configuration will reside from
|
|
|
|
the drop-down listbox in the *Schema* field.
|
2016-05-26 09:29:33 -05:00
|
|
|
* Store notes about the FTS configuration in the *Comment* field.
|
|
|
|
|
|
|
|
Click the *Definition* tab to continue.
|
|
|
|
|
|
|
|
.. image:: images/fts_configuration_definition.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: FTS configuration dialog definition tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2016-05-26 09:29:33 -05:00
|
|
|
|
|
|
|
Use the fields in the *Definition* tab to define parameters:
|
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
* Select the name of the text search parser from the drop-down listbox in the
|
|
|
|
*Parser* field.
|
2016-05-26 09:29:33 -05:00
|
|
|
* Select a language from the drop-down listbox in the *Copy Config* field.
|
|
|
|
|
|
|
|
Click the *Tokens* tab to continue.
|
|
|
|
|
|
|
|
.. image:: images/fts_configuration_tokens.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: FTS configuration dialog tokens tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2016-05-26 09:29:33 -05:00
|
|
|
|
|
|
|
Use the fields in the *Tokens* tab to add a token:
|
|
|
|
|
|
|
|
* Use the *Tokens* field to specify the name of a token.
|
2021-09-24 10:31:56 -05:00
|
|
|
* Click the *Add* button to create a token.
|
2018-01-11 10:58:30 -06:00
|
|
|
* Use the *Dictionaries* field to specify a dictionary.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Repeat these steps to add additional tokens; to discard a token, click the
|
|
|
|
trash icon to the left of the row and confirm deletion in the *Delete Row*
|
|
|
|
popup.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
|
|
|
Click the *SQL* tab to continue.
|
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Your entries in the *FTS Configuration* 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-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Example
|
|
|
|
*******
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
The following is an example of the sql command generated by user selections in
|
|
|
|
the *FTS Configuration* dialog:
|
2016-05-26 09:29:33 -05:00
|
|
|
|
|
|
|
.. image:: images/fts_configuration_sql.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: FTS configuration dialog sql tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2018-01-11 10:58:30 -06:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
The example shown demonstrates creating a FTS configuration named
|
2021-09-24 10:31:56 -05:00
|
|
|
*english_phrases*. It uses the *default* parser.
|
2016-05-26 09:29:33 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
* Click the *Info* button (i) to access online help.
|
2016-05-26 09:29:33 -05:00
|
|
|
* Click the *Save* button to save work.
|
2021-09-24 10:31:56 -05:00
|
|
|
* Click the *Close* button to exit without saving work.
|
2016-05-26 09:29:33 -05:00
|
|
|
* Click the *Reset* button to restore configuration parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|