Browse files

Merge pull request #172 from kostiklv/properties-mapping

Support for properties of objects/nested documents
  • Loading branch information...
2 parents 193ca38 + e35134b commit 9b2dc40bc1e030d5a588b22b39820340b254a3ae @richardmiller richardmiller committed Nov 28, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 DependencyInjection/Configuration.php
View
20 DependencyInjection/Configuration.php
@@ -267,6 +267,26 @@ protected function getMappingsNode()
->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()
;

0 comments on commit 9b2dc40

Please sign in to comment.