pgadmin4/docs/en_US/fts_parser_dialog.rst

65 lines
2.5 KiB
ReStructuredText
Raw Normal View History

2016-06-21 03:06:44 -05:00
.. _fts_parser_dialog:
2016-05-13 08:43:57 -05:00
2018-06-15 03:14:12 -05:00
**************************
`FTS Parser Dialog`:index:
**************************
2016-05-13 08:43:57 -05:00
Use the *FTS Parser* dialog to create a new text search parser. A text search
parser defines a method for splitting a text string into tokens and assigning
types (categories) to the tokens.
2016-05-13 08:43:57 -05:00
The *FTS Parser* dialog organizes the development of a text search parser
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_parser_general.png
:alt: FTS parser dialog general tab
:align: center
2016-05-13 08:43:57 -05:00
Use the fields in the *General* tab to identify a text search parser:
* Use the *Name* field to add a descriptive name for the parser. The name will
be displayed in the *pgAdmin* tree control.
* Select the name of the schema in which the parser will reside from the
drop-down listbox in the *Schema* field.
2016-05-24 07:47:35 -05:00
* Store notes about the domain 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_parser_definition.png
:alt: FTS parser dialog definition tab
:align: center
2016-05-13 08:43:57 -05:00
Use the fields in the *Definition* tab to define parameters:
* Use the drop-down listbox next to *Start function* to select the name of the
function that will initialize the parser.
* Use the drop-down listbox next to *Get next token function* to select the
name of the function that will return the next token.
* Use the drop-down listbox next to *End function* to select the name of the
function that is called when the parser is finished.
* Use the drop-down listbox next to *Lextypes function* to select the name of
the lextypes function for the parser. The lextypes function returns an array
that contains the id, alias, and a description of the tokens used by the
parser.
* Use the drop-down listbox next to *Headline function* to select the name of
the headline function for the parser. The headline function returns an excerpt
from the document in which the terms of the query are highlighted.
2016-05-13 08:43:57 -05:00
Click the *SQL* tab to continue.
2016-05-20 15:39:21 -05:00
.. image:: images/fts_parser_sql.png
:alt: FTS parser dialog sql tab
:align: center
Your entries in the *FTS Parser* dialog generate a generate a SQL command. Use
the *SQL* tab for review; revisit or switch tabs to make any changes to the SQL
command.
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.
2016-05-24 07:47:35 -05:00