# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. search laptop { document laptop inherits product { field batterycapacity type int { indexing: attribute } field location_str type array { } } field batteryrank type int { indexing: input batterycapacity | attribute } field location type array { indexing: input location_str | for_each { to_pos } | attribute } rank-profile default { second-phase { expression: fieldMatch(title)*fieldMatch(title).weight rerank-count: 150 } summary-features: fieldMatch(title) rank-features: attribute(batterycapacity) match.weight.batterycapacity rank-properties { fieldMatch(title).maxOccurrences : 40 fieldMatch(title).proximityLimit : 5 } } rank-profile batteryranked { } }