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:
parent
193ca3848b
commit
679480e496
1 changed files with 20 additions and 0 deletions
|
|
@ -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()
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue