It isn't a GeoAlchemy question.
This is what we have been using here:
class TsVector(types.UserDefinedType):
""" A custom type for PostgreSQL's tsvector type. """
def get_col_spec(self):
return 'TSVECTOR'
class FullTextSearch(GeoInterface, Base):
__tablename__ = 'tsearch'
__table_args__ = (
Index('tsearch_ts_idx', 'ts', postgresql_using='gin'),
{'schema': _schema}
)
id = Column('id', types.Integer, primary_key=True)
ts = Column('ts', TsVector)
the_geom = GeometryColumn(Geometry(srid=_srid))
--
Eric