# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. search rankexpression { document rankexpression { field artist type string { indexing: summary | index } field title type string { indexing: summary | index } field surl type string { indexing: summary } field year type int { indexing: summary | attribute } } rank-profile macros { function titlematch(var1, var2) { expression: file: titlematch } function artistmatch() { expression: 78+closeness(distance) } first-phase { expression: 0.8+0.2*titlematch(4,5)+0.8*titlematch(7,8)*closeness(distance) } } }