This repository was archived by the owner on Dec 13, 2023. It is now read-only.
File tree 4 files changed +16
-0
lines changed
4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1178,9 +1178,13 @@ Sorts documents using the
1178
1178
1179
1179
- ** doc** (document): must be emitted by ` FOR ... IN viewName `
1180
1180
- ** k** (number, _ optional_ ): calibrates the text term frequency scaling.
1181
+ The value needs to be non-negative (` 0.0 ` or higher), or the returned
1182
+ score is an undefined value that may cause unpredictable results.
1181
1183
The default is ` 1.2 ` . A ` k ` value of ` 0 ` corresponds to a binary model
1182
1184
(no term frequency), and a large value corresponds to using raw term frequency
1183
1185
- ** b** (number, _ optional_ ): determines the scaling by the total text length.
1186
+ The value needs to be between ` 0.0 ` and ` 1.0 ` (inclusive), or the returned
1187
+ score is an undefined value that may cause unpredictable results.
1184
1188
The default is ` 0.75 ` . At the extreme values of the coefficient ` b ` , BM25
1185
1189
turns into the ranking functions known as:
1186
1190
- BM11 for ` b ` = ` 1 ` (corresponds to fully scaling the term weight by the
Original file line number Diff line number Diff line change @@ -1178,9 +1178,13 @@ Sorts documents using the
1178
1178
1179
1179
- ** doc** (document): must be emitted by ` FOR ... IN viewName `
1180
1180
- ** k** (number, _ optional_ ): calibrates the text term frequency scaling.
1181
+ The value needs to be non-negative (` 0.0 ` or higher), or the returned
1182
+ score is an undefined value that may cause unpredictable results.
1181
1183
The default is ` 1.2 ` . A ` k ` value of ` 0 ` corresponds to a binary model
1182
1184
(no term frequency), and a large value corresponds to using raw term frequency
1183
1185
- ** b** (number, _ optional_ ): determines the scaling by the total text length.
1186
+ The value needs to be between ` 0.0 ` and ` 1.0 ` (inclusive), or the returned
1187
+ score is an undefined value that may cause unpredictable results.
1184
1188
The default is ` 0.75 ` . At the extreme values of the coefficient ` b ` , BM25
1185
1189
turns into the ranking functions known as:
1186
1190
- BM11 for ` b ` = ` 1 ` (corresponds to fully scaling the term weight by the
Original file line number Diff line number Diff line change @@ -1178,9 +1178,13 @@ Sorts documents using the
1178
1178
1179
1179
- ** doc** (document): must be emitted by ` FOR ... IN viewName `
1180
1180
- ** k** (number, _ optional_ ): calibrates the text term frequency scaling.
1181
+ The value needs to be non-negative (` 0.0 ` or higher), or the returned
1182
+ score is an undefined value that may cause unpredictable results.
1181
1183
The default is ` 1.2 ` . A ` k ` value of ` 0 ` corresponds to a binary model
1182
1184
(no term frequency), and a large value corresponds to using raw term frequency
1183
1185
- ** b** (number, _ optional_ ): determines the scaling by the total text length.
1186
+ The value needs to be between ` 0.0 ` and ` 1.0 ` (inclusive), or the returned
1187
+ score is an undefined value that may cause unpredictable results.
1184
1188
The default is ` 0.75 ` . At the extreme values of the coefficient ` b ` , BM25
1185
1189
turns into the ranking functions known as:
1186
1190
- BM11 for ` b ` = ` 1 ` (corresponds to fully scaling the term weight by the
Original file line number Diff line number Diff line change @@ -1067,9 +1067,13 @@ Sorts documents using the
1067
1067
1068
1068
- ** doc** (document): must be emitted by ` FOR ... IN viewName `
1069
1069
- ** k** (number, _ optional_ ): calibrates the text term frequency scaling.
1070
+ The value needs to be non-negative (` 0.0 ` or higher), or the returned
1071
+ score is an undefined value that may cause unpredictable results.
1070
1072
The default is ` 1.2 ` . A * k* value of ` 0 ` corresponds to a binary model
1071
1073
(no term frequency), and a large value corresponds to using raw term frequency
1072
1074
- ** b** (number, _ optional_ ): determines the scaling by the total text length.
1075
+ The value needs to be between ` 0.0 ` and ` 1.0 ` (inclusive), or the returned
1076
+ score is an undefined value that may cause unpredictable results.
1073
1077
The default is ` 0.75 ` . At the extreme values of the coefficient * b* , BM25
1074
1078
turns into the ranking functions known as:
1075
1079
- BM11 for * b* = ` 1 ` (corresponds to fully scaling the term weight by the
You can’t perform that action at this time.
0 commit comments