# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. search book { document book inherits common { struct ss0 { field s0 type string{} field d0 type double{} } struct ss1 { field s1 type string { } field l1 type long { } field i1 type int { } field d1 type double { } field as1 type array { } field al1 type array { } field ss01 type ss0 {} } struct ss2 { field s21 type string {} field ss02 type ss0 {} } field mystruct type ss1 { } field mystruct2 type ss2 {} field mywsinteger type weightedset { indexing: attribute } field mynestedwsinteger type weightedset {} field myarrayint type array { indexing: attribute } field stringmap type map { } field structmap type map { } field mysinglestructarray type array {} #field mydoublestructarray type array> {} field author type string { bolding: on indexing: summary | index } field isbn type string { indexing: summary | index } field year type int { indexing: summary | index } field description type string { indexing: summary | index summary: dynamic } } field sw1 type float { indexing { input weight * 6 + input w1 + input w2 | summary; } } field didinteger type array { indexing: input did | split " " | for_each { to_int } | attribute } rank-profile default { first-phase { expression: nativeRank } } rank-profile rp1 inherits default { } rank-profile rp2 inherits default { } }