SearchVectorField
This class provides a specialized database field for storing PostgreSQL tsvector data. It is used to represent precomputed search vectors for full-text search optimization within a PostgreSQL database.
Constructor
Signature
def SearchVectorField()
Methods
db_type()
@classmethod
def db_type(
connection: DatabaseConnection
) - > string
Returns the database column type used for storing full-text search vectors in PostgreSQL.
Parameters
| Name | Type | Description |
|---|---|---|
| connection | DatabaseConnection | The current database connection object used to determine backend-specific logic. |
Returns
| Type | Description |
|---|---|
string | The PostgreSQL data type name "tsvector" used for full-text search indexing. |