Refactor constitution entity

This commit is contained in:
2021-03-20 00:55:39 +01:00
parent 8701815288
commit c9ce2a9dc7
8 changed files with 131 additions and 96 deletions

View File

@@ -15,7 +15,6 @@ begin
select
c.*,
find_citizen_by_id_with_user(c.created_by_id) as created_by,
find_constitution_titles_by_id(c.id) as titles,
zdb.score(c.ctid) _score
from constitution as c
where _search is null or _search = '' or c ==> dsl.multi_match('{title^3, intro}', _search)