Skip to content

Commit

Permalink
Adding back in search vector
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss committed Oct 24, 2023
1 parent 7b491ce commit 1a87c48
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/dispatch/signal/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ class SignalInstance(Base, TimeStampMixin, ProjectMixin):
signal_name = column_property(select([Signal.name]).where(Signal.id == signal_id))
signal_description = column_property(select([Signal.description]).where(Signal.id == signal_id))

# search_vector = Column(
# TSVectorType(
# "signal_name",
# "signal_description",
# weights={"signal_name": "A", "signal_description": "B"},
# )
# )
search_vector = Column(
TSVectorType(
"signal_name",
"signal_description",
weights={"signal_name": "A", "signal_description": "B"},
)
)


# Pydantic models
Expand Down

0 comments on commit 1a87c48

Please sign in to comment.