Files
pyrseas/docs/textsearch.rst
T
2025-05-20 09:24:29 -04:00

103 lines
2.9 KiB
ReStructuredText

Text Search Objects
===================
.. module:: pyrseas.dbobject.textsearch
The :mod:`textsearch` module defines eight classes: classes
:class:`TSConfiguration`, :class:`TSDictionary`, :class:`TSParser` and
:class:`TSTemplate` derived from :class:`DbSchemaObject`, and classes
:class:`TSConfigurationDict`, :class:`TSDictionaryDict`,
:class:`TSParserDict` and :class:`TSTemplateDict` derived from
:class:`DbObjectDict`.
Text Search Configuration
-------------------------
:class:`TSConfiguration` is derived from :class:`DbSchemaObject` and
represents a `Postgres text search configuration
<https://www.postgresql.org/docs/current/static/sql-createtsconfig.html>`_.
.. autoclass:: TSConfiguration
.. automethod:: TSConfiguration.to_map
.. automethod:: TSConfiguration.create
Text Search Configuration Dictionary
------------------------------------
:class:`TSConfigurationDict` is derived from
:class:`~pyrseas.dbobject.DbObjectDict`. It is a dictionary that
represents the collection of text search configurations in a database.
.. autoclass:: TSConfigurationDict
.. automethod:: TSConfigurationDict.from_map
Text Search Dictionary
----------------------
:class:`TSDictionary` is derived from :class:`DbSchemaObject` and
represents a `Postgres text search dictionary
<https://www.postgresql.org/docs/current/static/textsearch-dictionaries.html>`_.
.. autoclass:: TSDictionary
.. automethod:: TSDictionary.create
Text Search Dictionary Dictionary
---------------------------------
:class:`TSDictionaryDict` is derived from
:class:`~pyrseas.dbobject.DbObjectDict`. It is a Python dictionary
that represents the collection of text search dictionaries in a
database.
.. autoclass:: TSDictionaryDict
.. automethod:: TSDictionaryDict.from_map
Text Search Parser
------------------
:class:`TSParser` is derived from :class:`DbSchemaObject` and
represents a `Postgres text search parser
<https://www.postgresql.org/docs/current/static/sql-createtsparser.html>`_.
.. autoclass:: TSParser
.. automethod:: TSParser.create
Text Search Parser Dictionary
-----------------------------
:class:`TSParserDict` is derived from
:class:`~pyrseas.dbobject.DbObjectDict`. It is a dictionary that
represents the collection of text search parsers in a database.
.. autoclass:: TSParserDict
.. automethod:: TSParserDict.from_map
Text Search Template
--------------------
:class:`TSTemplate` is derived from :class:`DbSchemaObject` and
represents a `Postgres text search template
<https://www.postgresql.org/docs/current/static/sql-createtstemplate.html>`_.
.. autoclass:: TSTemplate
.. automethod:: TSTemplate.create
Text Search Template Dictionary
-------------------------------
:class:`TSTemplateDict` is derived from
:class:`~pyrseas.dbobject.DbObjectDict`. It is a dictionary that
represents the collection of text search templates in a database.
.. autoclass:: TSTemplateDict
.. automethod:: TSTemplateDict.from_map