Permalink
Browse files

Merge pull request #211 from liip-forks/fields_in_properties

Adding the fields configuration to the properties so multi_field fields ...
  • Loading branch information...
2 parents c82999f + 4055ff3 commit 48d665e2ea3d1bbd13a2016726e1723faa89ebde @richardmiller richardmiller committed Feb 3, 2013
Showing with 20 additions and 0 deletions.
  1. +20 −0 DependencyInjection/Configuration.php
@@ -324,6 +324,26 @@ protected function getMappingsNode()
->scalarNode('null_value')->end()
->booleanNode('include_in_all')->defaultValue('true')->end()
->scalarNode('lat_lon')->end()
+ ->arrayNode('fields')
+ ->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()
->end()

0 comments on commit 48d665e

Please sign in to comment.