[
"was OR sind OR attributsets OR und OR wann OR nutze OR ich OR sie OR varianten OR desselben"
372398
"was OR sind OR attributsets OR und OR wann OR nutze OR ich OR sie OR varianten OR desselben"
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','was OR sind OR attributsets OR und OR wann OR nutze OR ich OR sie OR varianten OR desselben')) ASrank,g.nameASgroup_name,g.slugASgroup_slug,c.nameAScategory_name,c.slugAScategory_slug,CASEWHENc.id=37THEN1ELSE0ENDASsame_categoryFROMsettings_content_pagepJOINsettings_content_groupgONg.id=p.group_idJOINsettings_content_categorycONc.id=g.category_idWHEREc.client_id=2ANDp.id<>398AND ((
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','was OR sind OR attributsets OR und OR wann OR nutze OR ich OR sie OR varianten OR desselben')
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 (400,399,383,343,337)) AND (s0_.deleted_atISNULL);