12
12
13
13
14
14
15
- < h2 id ="variables " > Variables </ h2 >
15
+ < h2 id ="properties " > Properties </ h2 >
16
16
< p >
17
- Rank Features configuration variables are set by adding the following to the rank profile:
17
+ Rank Features configuration properties are set by adding the following to the rank profile:
18
18
</ p >
19
19
< pre >
20
20
rank-properties {
@@ -24,17 +24,13 @@ <h2 id="variables">Variables</h2>
24
24
< p >
25
25
Where < em > <featurename></ em > is the name of a feature class (feature name up to the first dot),
26
26
< em > <configuration-property></ em > is a property from the list below,
27
- appropriate for the feature, and < em > <value></ em > is either a number of a quoted string.
28
- Example: set some properties on the fieldMatch and BM25 feature class of two different fields,
29
- set properties for elementwise BM25 on the content field
30
- and define custom outputs for the elementSimilarity feature for multivalued field ranking.
27
+ appropriate for the feature, and < em > <value></ em > is either a number of a quoted string. Example:
31
28
</ p >
32
29
< pre >
33
- ranking -profile my-profile inherits default {
30
+ rank -profile my-profile inherits default {
34
31
rank-properties {
35
32
fieldMatch(title).maxAlternativeSegmentations: 10
36
33
fieldMatch(title).maxOccurrences: 5
37
- fieldMatch(description).maxOccurrences: 20
38
34
bm25(title).k1: 1.5
39
35
bm25(title).b: 0.85
40
36
bm25(title).averageFieldLength: 200
@@ -45,21 +41,18 @@ <h2 id="variables">Variables</h2>
45
41
elementSimilarity(tags).output.avgWeightSquared: "avg((0.35*p+0.15*o+0.30*q+0.20*f)*w^2)"
46
42
elementSimilarity(tags).output.sumWeight: "sum(w)"
47
43
}
48
- match-features {
49
- elementSimilarity(tags).sumWeightSquared
50
- elementSimilarity(tags).sumWeight
51
- bm25(title)
52
- elementwise(bm25(content),x,float)
53
- }
54
44
}
55
45
</ pre >
56
46
< p >
57
- Note that rank profiles can be inherited to use the same variables in multiple profiles.
47
+ Rank profiles are inherited like other content of rank profiles.
58
48
</ p >
59
49
60
50
61
51
62
- < h2 id ="properties "> Configuration Properties</ h2 >
52
+ < h2 id ="List of properties "> List of properties</ h2 >
53
+
54
+ < p > An incomplete list of rank properties by the feature they apply to.</ p >
55
+
63
56
< table class ="table ">
64
57
< thead >
65
58
< tr > < th > Feature</ th > < th > Parameter</ th > < th > Default</ th > < th > Description</ th > </ tr >
@@ -88,7 +81,8 @@ <h2 id="properties">Configuration Properties</h2>
88
81
When using < a href ="../streaming-search.html#differences-in-streaming-search "> streaming search</ a > ,
89
82
no index structures are generated, and the average field length is not automatically calculated.
90
83
Instead, manually set an average field length for a more precise BM25 score.
91
- </ td > </ tr >
84
+ </ td >
85
+ </ tr >
92
86
93
87
< tr >
94
88
< td rowspan ="3 ">
0 commit comments