如果您要从早期版本的插件升级,此页面旨在收集您在升级应用程序时可能需要进行的所有更改。
由于 elasticsearch 5 和 6 中进行的更改,此插件不再支持同一索引中的多个类型。 这会影响所有类型类都需要重命名为索引。 例如,App\Model\Type\ArticlesType
需要变为 App\Model\Index\ArticlesIndex
。 此外,索引类假定类型映射具有索引的单数名称。 例如,articles
索引具有 article
的类型映射。
Index::entityClass()
已移除。 使用 getEntityClass()
或 setEntityClass()
代替。
ResultSet::hasFacets()
已移除,因为 elastica 不再公开此方法。
ResultSet::getFacets()
已移除,因为 elastica 不再公开此方法。
ResultSet::getFacets()
已移除,因为 elastica 不再公开此方法。
现在,Type
基类为 Index
。
TypeRegistry
现在为 IndexRegistry
。