<commit_before>Step 1: Setting up the bundle
=============================

A) Install FOSElasticaBundle
----------------------------

FOSElasticaBundle is installed using [Composer](https://getcomposer.org).

```bash
$ php composer.phar require friendsofsymfony/elastica-bundle "3.0.*"
```

### Elasticsearch

Instructions for installing and deploying Elasticsearch may be found
[here](http://www.elasticsearch.org/guide/reference/setup/installation/).


B) Enable FOSElasticaBundle
---------------------------

Enable FOSElasticaBundle in your AppKernel:

```php
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FOS\RestBundle\FOSRestBundle(),
    );
}
```

C) Basic Bundle Configuration
-----------------------------

The basic minimal configuration for FOSElasticaBundle is one client with one Elasticsearch
index. In almost all cases, an application will only need a single index. An index can
be considered comparable to a Doctrine Entity Manager, where the index will hold multiple
type definitions.

```yaml
#app/config/config.yml
fos_elastica:
    clients:
        default: { host: localhost, port: 9200 }
    indexes:
        search: ~
```

In this example, an Elastica index (an instance of `Elastica\Index`) is available as a
service with the key `fos_elastica.index.search`.

If the Elasticsearch index name needs to be different to the service name in your<commit_msg>Corrected bundle class name in install instructions<commit_after>Step 1: Setting up the bundle
=============================

A) Install FOSElasticaBundle
----------------------------

FOSElasticaBundle is installed using [Composer](https://getcomposer.org).

```bash
$ php composer.phar require friendsofsymfony/elastica-bundle "3.0.*"
```

### Elasticsearch

Instructions for installing and deploying Elasticsearch may be found
[here](http://www.elasticsearch.org/guide/reference/setup/installation/).


B) Enable FOSElasticaBundle
---------------------------

Enable FOSElasticaBundle in your AppKernel:

```php
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FOS\ElasticaBundle\FOSElasticaBundle(),
    );
}
```

C) Basic Bundle Configuration
-----------------------------

The basic minimal configuration for FOSElasticaBundle is one client with one Elasticsearch
index. In almost all cases, an application will only need a single index. An index can
be considered comparable to a Doctrine Entity Manager, where the index will hold multiple
type definitions.

```yaml
#app/config/config.yml
fos_elastica:
    clients:
        default: { host: localhost, port: 9200 }
    indexes:
        search: ~
```

In this example, an Elastica index (an instance of `Elastica\Index`) is available as a
service with the key `fos_elastica.index.search`.

If the Elasticsearch index name needs to be different to the service name in your
{'fraction_non_alphanumeric': 0.1572498298162015, 'fraction_numerical': 0.004765146358066712, 'mean_word_length': 3.1925820256776034, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2060408', 'n_tokens_mistral': 828, 'n_tokens_neox': 803, 'n_words': 289}