phlexible/indexer-storage-elastica-bundle

phlexible indexer storage elastica bundle

1.1.3 2017-04-19 11:45 UTC

This package is auto-updated.

Last update: 2024-09-08 07:22:58 UTC


README

PhlexibleIndexerStorageElasticaBundle 为 phlexible 添加了支持 elasticsearch 索引的功能。

安装

  1. 使用 composer 下载 PhlexibleIndexerStorageElasticaBundle
  2. 启用 Bundle
  3. 清除 symfony 缓存

步骤 1: 使用 composer 下载 PhlexibleIndexerStorageElasticaBundle

运行以下命令添加 PhlexibleIndexerBundle

$ php composer.phar require phlexible/indexer-storage-elastica-bundle "~1.0.0"

Composer 将将 Bundle 安装到项目的 vendor/phlexible 目录。

步骤 2: 启用 Bundle

在 kernel 中启用 Bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Phlexible\Bundle\IndexerStorageElasticaBundle\PhlexibleIndexerStorageElasticaBundle(),
    );
}

步骤 3: 清除 symfony 缓存

如果您以 prod 环境访问 phlexible 应用程序,请清除缓存

$ php app/console cache:clear --env=prod