OR unaccent(LOWER(first_name)) like unaccent(LOWER(?))OR unaccent(LOWER(last_name)) like unaccent(LOWER(?))'OR unaccent(LOWER(first_name)) like unaccent(LOWER(?))OR unaccent(LOWER(last_name)) like unaccent(LOWER(?))OR u
('%query%') OR lower(sldt.unaccent_description、lower(sldt.unaccent_title)和lower(sldt.unaccent_description)上放置了3个trigram索引。('%query%'::text)) OR (lower(sldt
为此,我创建了以下函数:CREATE OR REPLACE FUNCTION immutable_unaccent(varchar) SELECT unaccent($1)然后使用以下函数在name上创建一个索引:
CREATEINDEX products_search_name_key ON products(immutable_unacc