# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. schema test { document test { struct elem { field name type string {} field weight type int {} } field str_elem_map type map { indexing: summary struct-field key { indexing: attribute attribute: fast-search } struct-field value.name { indexing: attribute } struct-field value.weight { indexing: attribute } } field int_elem_map type map { indexing: summary struct-field key { indexing: attribute } struct-field value.name { indexing: attribute attribute: fast-search } } } document-summary rename { summary new_str_elem_map type map { source: str_elem_map } summary new_int_elem_map type map { source: int_elem_map } } }