Install bundle over composer:
composer require sulu/article-bundle
Add bundle to AbstractKernel:
new Sulu\Bundle\ArticleBundle\SuluArticleBundle(),
new ONGR\ElasticsearchBundle\ONGRElasticsearchBundle(),
Create required phpcr nodes:
app/console sulu:document:init
Configure the bundle:
sulu_route:
mappings:
Sulu\Bundle\ArticleBundle\Document\ArticleDocument:
route_schema: /articles/{object.getTitle()}
ongr_elasticsearch:
connections:
default:
index_name: su_articles
managers:
default:
connection: default
mappings:
- SuluArticleBundle
Create elasticsearch index:
bin/console ongr:es:index:create