Skip to content
Browse files

Added configuration mapping for properties key, allows configuing map…

…ping for objects/nested documents
  • Loading branch information...
1 parent afe5369 commit e35134b780ae4abf3571c4a62aba4419f581ed5b @kostiklv kostiklv committed
Showing with 20 additions and 0 deletions.
  1. +20 −0 DependencyInjection/Configuration.php
View
20 DependencyInjection/Configuration.php
@@ -266,6 +266,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 e35134b

Please sign in to comment.
Something went wrong with that request. Please try again.