|
|
|
@ -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,
|
|
|
|
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|