FTS Configuration dialog¶
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.
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.
Click the General tab to begin.
Create FTS Configuration dialog - General tab¶
Use the fields in the General tab to identify a FTS configuration:
Use the
Namefield to add a descriptive name for the FTS configuration. The name will be displayed in theBrowsertree control.Use the drop-down listbox next to
Ownerto 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
Schemafield.Store notes about the FTS configuration in the
Commentfield.
Click the Definition tab to continue.
Create FTS Configuration dialog - Definition tab¶
Use the fields in the Definition tab to define parameters:
Select the name of the text search parser from the drop-down listbox in the
Parserfield.Select a language from the drop-down listbox in the
Copy Configfield.
Click the Tokens tab to continue.
Create FTS Configuration dialog - Tokens tab¶
Use the fields in the Tokens tab to add a token:
Use the
Tokensfield to specify the name of a token.Click the
Addicon (+) to create a token.Use the
Dictionariesfield to specify a dictionary.
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.
Click the SQL tab to continue.
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.
Example
The following is an example of the sql command generated by user selections in the FTS Configuration dialog:
Create FTS Configuration dialog - SQL tab¶
The example shown demonstrates creating a FTS configuration named meme_phrases. It uses the default parser.
Click the
Infobutton (i) to access online help. View context-sensitive help in theTabbed browser, where a new tab displays the PostgreSQL core documentation.Click the
Savebutton to save work.Click the
Cancelbutton to exit without saving work.Click the
Resetbutton to restore configuration parameters.