blob: df42b822dc29367174ac2a412e9a6f799a2a642a (
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
|
# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search fieldlength {
document fieldlength {
field artist type string {
indexing: summary | index
# index-to: default
}
field title type string {
indexing: summary | index
# index-to: default
}
field song type string {
indexing: summary | index
# index-to: all, song
}
field album type string {
indexing: summary | index
# index-to: all, album, all2
}
field composer type string {
indexing: summary | index
# index-to: all, composer, all2
}
field label type string {
indexing: summary | index
}
field year type int {
indexing: summary | attribute
}
}
rank-profile default {
first-phase {
expression: classicRank
}
second-phase {
expression: if(3>2,4,2)
rerank-count: 10
}
rank-features: attribute(baz).out sum(value(3))
rank-features: classicRank
ignore-default-rank-features
rank-properties {
foo: "bar, baz"
qux: "quux"
foo: "foobar"
}
}
rank-profile static {
first-phase {
expression: attribute
}
second-phase {
expression: file:../rankexpression/rankexpression
}
summary-features: sum(value(1),value(2))
}
}
|