blob: 7f09095c5e74ba424498ae15055e023142e95a2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 2017 Yahoo Holdings. 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 {
macro titlematch$(var1, var2) {
expression: file: titlematch
}
macro artistmatch() {
expression: 78+closeness(distance)
}
first-phase {
expression: 0.8+0.2*titlematch$(4,5)+0.8*titlematch$(7,8)*closeness(distance)
}
}
}
|