blob: 147e128df16bb62d935062629a8af6bc81164de3 (
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
|
# Copyright 2016 Yahoo Inc. 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<string> {
}
}
field batteryrank type int {
indexing: input batterycapacity | attribute
}
field location type array<position> {
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 {
}
}
|