uxf/content


README

安装

$ composer req uxf/content

Doctrine 迁移

$this->addSql("CREATE TEXT SEARCH DICTIONARY unaccented_czech (template = ispell, dictfile = 'unaccented_czech', afffile = 'unaccented_czech', stopwords = 'unaccented_czech')");
$this->addSql("CREATE TEXT SEARCH CONFIGURATION unaccented_cs (parser = default)");
$this->addSql("ALTER TEXT SEARCH CONFIGURATION unaccented_cs ALTER MAPPING FOR asciiword, asciihword, hword_asciipart, word, hword, hword_part WITH unaccented_czech");

GIN 索引

-- original
CREATE INDEX IDX_42803DB7DCC6AB0B ON app_blog.test_article (content_search);

-- modified
CREATE INDEX IDX_42803DB7DCC6AB0B ON app_blog.test_article USING GIN(content_search);