You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add a final guard in the ranking expressions coercing to some small number,
108
+
making non-finite scores sink to the bottom while remaining a valid number:
109
+
```
110
+
function finite_or_sentinel(x) {
111
+
expression: if (isNan(x - x), -1e9, x)
112
+
}
113
+
```
114
+
- Use CBOR instead of JSON - using a binary format can represent NaNs and Infinities without issues,
115
+
and it can also be faster/more efficient
87
116
88
-
- The [ranking](../basics/ranking.html) expression used a feature which became `NaN` (Not a Number). For example, `log(0)` would produce
89
-
-Infinity. One can use [isNan](../reference/ranking/ranking-expressions.html#isnan-x) to guard against this.
90
-
- Surfacing low scoring hits using [grouping](../querying/grouping.html), that is, rendering low ranking hits with `each(output(summary()))` that are outside what Vespa computed and caches on a heap. This is controlled by the [total-keep-rank-count](../reference/schemas/schemas.html#total-keep-rank-count) parameter.
91
117
92
118
### How to pin query results?
93
119
To hard-code documents to positions in the result set,
0 commit comments