[
"erstellst OR eine OR gutschrift OR bei OR mietminderung OR oder OR kulanz OR senkt OR den OR offenen"
392416
"erstellst OR eine OR gutschrift OR bei OR mietminderung OR oder OR kulanz OR senkt OR den OR offenen"
5]
SELECTp.id,ts_rank((
setweight(to_tsvector('german',coalesce(p.name,'')),'A') ||setweight(to_tsvector('german',coalesce(p.teaser,'')),'B') ||setweight(to_tsvector('german',coalesce(p.seo_keywords,'')),'B') ||setweight(to_tsvector('german',coalesce(regexp_replace(p.content,'<[^>]+>',' ','g'),'')),'C')
),websearch_to_tsquery('german','erstellst OR eine OR gutschrift OR bei OR mietminderung OR oder OR kulanz OR senkt OR den OR offenen')) ASrank,g.nameASgroup_name,g.slugASgroup_slug,c.nameAScategory_name,c.slugAScategory_slug,CASEWHENc.id=39THEN1ELSE0ENDASsame_categoryFROMsettings_content_pagepJOINsettings_content_groupgONg.id=p.group_idJOINsettings_content_categorycONc.id=g.category_idWHEREc.client_id=2ANDp.id<>416AND ((
setweight(to_tsvector('german',coalesce(p.name,'')),'A') ||setweight(to_tsvector('german',coalesce(p.teaser,'')),'B') ||setweight(to_tsvector('german',coalesce(p.seo_keywords,'')),'B') ||setweight(to_tsvector('german',coalesce(regexp_replace(p.content,'<[^>]+>',' ','g'),'')),'C')
)) @@websearch_to_tsquery('german','erstellst OR eine OR gutschrift OR bei OR mietminderung OR oder OR kulanz OR senkt OR den OR offenen')
ORDER BYsame_categoryDESC,rankDESC,p.updated_atDESCLIMIT5;
SELECTs0_.idASid_0,s0_.created_atAScreated_at_1,s0_.updated_atASupdated_at_2,s0_.nameASname_3,s0_.slugASslug_4,s0_.teaserASteaser_5,s0_.iconASicon_6,s0_.contentAScontent_7,s0_.priorityASpriority_8,s0_.visibleASvisible_9,s0_.seo_keywordsASseo_keywords_10,s0_.seo_meta_descriptionASseo_meta_description_11,s0_.page_view_counterASpage_view_counter_12,s0_.deleted_atASdeleted_at_13,s0_.group_idASgroup_id_14FROMsettings_content_pages0_WHERE (s0_.idIN (?,?,?,?,?)) AND (s0_.deleted_atISNULL)
SELECTs0_.idASid_0,s0_.created_atAScreated_at_1,s0_.updated_atASupdated_at_2,s0_.nameASname_3,s0_.slugASslug_4,s0_.teaserASteaser_5,s0_.iconASicon_6,s0_.contentAScontent_7,s0_.priorityASpriority_8,s0_.visibleASvisible_9,s0_.seo_keywordsASseo_keywords_10,s0_.seo_meta_descriptionASseo_meta_description_11,s0_.page_view_counterASpage_view_counter_12,s0_.deleted_atASdeleted_at_13,s0_.group_idASgroup_id_14FROMsettings_content_pages0_WHERE
(
s0_.idIN (?,?,?,?,?)
)
AND (s0_.deleted_atISNULL)
SELECTs0_.idASid_0,s0_.created_atAScreated_at_1,s0_.updated_atASupdated_at_2,s0_.nameASname_3,s0_.slugASslug_4,s0_.teaserASteaser_5,s0_.iconASicon_6,s0_.contentAScontent_7,s0_.priorityASpriority_8,s0_.visibleASvisible_9,s0_.seo_keywordsASseo_keywords_10,s0_.seo_meta_descriptionASseo_meta_description_11,s0_.page_view_counterASpage_view_counter_12,s0_.deleted_atASdeleted_at_13,s0_.group_idASgroup_id_14FROMsettings_content_pages0_WHERE (s0_.idIN (421,424,411,422,415)) AND (s0_.deleted_atISNULL);