Skip to main content

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

NameTypeDescription
connectionDatabaseConnectionThe current database connection object used to determine backend-specific logic.

Returns

TypeDescription
stringThe PostgreSQL data type name "tsvector" used for full-text search indexing.