Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 806 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 806 Bytes

SuluArticleBundle

Installation

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