blob: 4cc9db0651e1d16aff14d853a9bc374b6622a199 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search music2 {
document music2 inherits common {
field artist type string {
bolding: on
# index-to: default, artist
indexing: index|summary
}
field disp_song type string {
indexing: summary
}
field song type string {
# index-to: default, song
indexing: index
}
field isbn type string {
bolding: on
# index-to: default, isbn
indexing: index|summary
}
field year type int {
indexing: attribute|index|summary
}
annotation recordlabel {}
annotation person {
field name type string { }
}
annotation artist inherits person {
field instrument type int { }
}
annotation date {
field exacttime type long { }
}
annotation place {
field lat type long { }
field lon type long { }
}
annotation event {
field description type string { }
field person type annotationreference<person> { }
field date type annotationreference<date> { }
field place type annotationreference<place> { }
}
}
field sw1 type float {
indexing {
input weight_src * 6 + input w1_src + input w2_src | summary;
}
}
field didinteger type array<int> {
indexing: input did | split " " | for_each { to_int } | attribute
}
rank-profile default {
first-phase {
expression: nativeRank
}
}
rank-profile rp1 inherits default {
#static-rank: weight1
}
rank-profile rp2 inherits default {
#static-rank: weight2
}
}
|