add ability to configure nested mapping

``` yaml
foq_elastica:
    clients:
        default: { host: localhost, port: 9200 }
    indexes:
        website:
            client: default
            types:
                product:
                    mappings:
                        name: { type: string }
                        price: { type: float}
                        specifications:
                            type: object
                            properties:
                                name: {type: string}
                                value: {type: string, analyzer: keyword}
```
This commit is contained in:
Julien Muetton 2012-11-22 14:31:22 +01:00
parent 193ca3848b
commit 679480e496

View file

@ -267,6 +267,26 @@ class Configuration
->end()
->end()
->end()
->arrayNode('properties')
->useAttributeAsKey('name')
->prototype('array')
->treatNullLike(array())
->addDefaultsIfNotSet()
->children()
->scalarNode('type')->defaultValue('string')->end()
->scalarNode('boost')->end()
->scalarNode('store')->end()
->scalarNode('index')->end()
->scalarNode('index_analyzer')->end()
->scalarNode('search_analyzer')->end()
->scalarNode('analyzer')->end()
->scalarNode('term_vector')->end()
->scalarNode('null_value')->end()
->booleanNode('include_in_all')->defaultValue('true')->end()
->scalarNode('lat_lon')->end()
->end()
->end()
->end()
->end()
->end()
;