diff --git a/Resources/doc/article-view-document.md b/Resources/doc/article-view-document.md index fdadd020..12f61420 100644 --- a/Resources/doc/article-view-document.md +++ b/Resources/doc/article-view-document.md @@ -36,6 +36,37 @@ The `content` and `view` property is represented by a proxy to avoid resolving d To extend the indexed data you can extend the `ArticleViewDocument`. This can be achieved by performing the following steps. The same steps can also be used to extend the `ArticlePageViewObject`. +### 0. Create a Bundle Class + +Unfortunately, the ElasticsearchBundle allows to overwrite document classes only if an `AppBundle` is registered in the +application. If you do not have registered such a bundle yet, you need to add it to your `src` directory and enable it +in the `config/bundles.php` file. + +```php + ['all' => true], +] +``` + #### 1. Create custom class ```php @@ -125,23 +156,3 @@ class ArticleIndexListener ``` - -### Troubleshooting - -Unfortunately, the ElasticsearchBundle allows to overwrite document classes only if an `AppBundle` is registered in the -application. If you do not have registered such a bundle yet, you need to add it to your `src` directory and enable it -in the `config/bundles.php` file. - -``` -