add: search over multiple columns

v0.2
rrr-marble 4 years ago
parent 8dd98490fe
commit 7866e245dc

@ -51,7 +51,10 @@ class Item(ItemBase):
geodata_search_ts = Column( geodata_search_ts = Column(
TSVECTOR, TSVECTOR,
Computed("to_tsvector('russian', geodata.description)", persisted=True), Computed(
"to_tsvector('russian', coalesce(geodata.description, '') || ' ' || coalesce(geodata.additional_info, '') || ' ' || coalesce(geodata.comment, ''))",
persisted=True,
),
) )

Loading…
Cancel
Save