# Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. search 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 } } } }