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
* ranking score spec
* search API changes
* telemetry policies score
* open api
* Fix typos in spec
Co-authored-by: Maria Craig <marycraig90@gmail.com>
* Add multi search telemetry
---------
Co-authored-by: Maria Craig <marycraig90@gmail.com>
description: (EXPERIMENTAL) The ranking score per ranking rule.
241
+
examples:
242
+
With sort:
243
+
words:
244
+
order: 0
245
+
matchingWords: 7
246
+
maxMatchingWords: 7
247
+
score: 1.0
248
+
"typo":
249
+
"order": 1
250
+
"typoCount": 0
251
+
"maxTypoCount": 0
252
+
"score": 1.0
253
+
"proximity":
254
+
"order": 2,
255
+
"score": 1.0
256
+
"attribute":
257
+
"order": 3
258
+
"attribute_ranking_order_score": 1.0
259
+
"query_word_distance_score": 1.0
260
+
"score": 1.0
261
+
"title:asc":
262
+
"order": 4
263
+
"value": "batman: the dark knight returns, part 1"
264
+
"release_date:desc":
265
+
"order": 5
266
+
"value": 1345507200.0
267
+
"exactness":
268
+
"order": 6
269
+
"matchType": "exactMatch"
270
+
"score": 1.0
120
271
hit:
121
272
type: object
122
273
additionalProperties: true
@@ -168,6 +319,15 @@ components:
168
319
properties:
169
320
'':
170
321
$ref: '#/components/schemas/matchesPosition'
322
+
_rankingScore:
323
+
type: number
324
+
description: Only present if showRankingScore = `true`. The ranking score of that document.
325
+
_rankingScoreDetails:
326
+
type: object
327
+
description: (EXPERIMENTAL) Only present if showRankingScoreDetails = `true`. The ranking score of each ranking rule for that document.
328
+
properties:
329
+
'':
330
+
$ref: '#/components/schemas/rankingScoreDetails'
171
331
attribute:
172
332
type:
173
333
- string
@@ -712,6 +872,14 @@ components:
712
872
type: boolean
713
873
description: Defines whether an `_matchesPosition` object that contains information about the matches should be returned or not.
714
874
default: false
875
+
showRankingScore:
876
+
type: boolean
877
+
description: Defines whether a `_rankingScore` number representing the relevancy score of that document should be returned or not.
878
+
default: false
879
+
showRankingScoreDetails:
880
+
type: boolean
881
+
description: (EXPERIMENTAL) Defines whether a `_rankingScoreDetails` object containing information about the score of that document for each ranking rule should be returned or not.
882
+
default: false
715
883
matchingStrategy:
716
884
type: string
717
885
description: Defines which strategy to use to match the query terms within the documents as search results. Two different strategies are available, `last` and `all`. By default, the `last` strategy is chosen.
Copy file name to clipboardExpand all lines: text/0034-telemetry-policies.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,8 @@ The collected data is sent to [Segment](https://segment.com/). Segment is a plat
191
191
|`clear_all`|`true` if `DELETE /indexes/:indexUid/documents` endpoint was used in this batch, otherwise `false`| false |`Documents Deleted`|
192
192
| vector_store | Whether the [vector store](./0193-experimental-features.md#vector-store) feature is enabled. |`true`|`Experimental features Updated`|
193
193
| score_details | Whether the [score details](./0193-experimental-features.md#score-details) feature is enabled. |`true`|`Experimental features Updated`|
194
+
| scoring.show_ranking_score | Was `showRankingScore` used in the aggregated event? If yes, `true`, otherwise `false`|`false`|`Documents Searched POST`, `Documents Searched GET`, `Documents Searched by Multi-Search POST`|
195
+
| scoring.show_ranking_score_details | Was `showRankingScoreDetails` used in the aggregated event? If yes, `true`, otherwise `false`|`false`|`Documents Searched POST`, `Documents Searched GET`, `Documents Searched GET`|
194
196
195
197
----
196
198
@@ -283,9 +285,11 @@ This property allows us to gather essential information to better understand on
283
285
| formatting.max_attributes_to_crop | The maximum number of attributes to crop encountered among all requests in the aggregated event. |`100`|
284
286
| formatting.crop_length | Does `cropLength` has been used in the aggregated event? If yes, `true` otherwise `false`|`false`|
285
287
| formatting.crop_marker | Does `cropMarker` has been used in the aggregated event? If yes, `true` otherwise `false`|`false`|
286
-
| formatting.show_matches_position |Does`showMatchesPosition` has been used in the aggregated event? If yes, `true` otherwise `false`|`false`|
288
+
| formatting.show_matches_position |Was`showMatchesPosition` used in the aggregated event? If yes, `true` otherwise `false`|`false`|
287
289
| facets.avg_facets_number | The average number of facets among all the requests containing the `facets` parameter in the aggregated event. `"facets": []` equals to `0` while not sending `facets` does not influence the average in the aggregated event. |`10`|
288
290
| matching_strategy.most_used_strategy | Most used word matching strategy among all search requests in the aggregated event. `last` / `all`|`last`|
291
+
| scoring.show_ranking_score | Was `showRankingScore` used in the aggregated event? If yes, `true`, otherwise `false`|`false`|
292
+
| scoring.show_ranking_score_details | Was `showRankingScoreDetails` used in the aggregated event? If yes, `true`, otherwise `false`|`false`|
289
293
290
294
---
291
295
@@ -320,6 +324,8 @@ This property allows us to gather essential information to better understand on
320
324
| formatting.show_matches_position | Does `showMatchesPosition` has been used in the aggregated event? If yes, `true` otherwise `false`|`false`|
321
325
| facets.avg_facets_number | The average number of facets among all the requests containing the `facets` parameter in the aggregated event. `"facets": []` equals to `0` while not sending `facets` does not influence the average in the aggregated event. |`10`|
322
326
| matching_strategy.most_used_strategy | Most used word matching strategy among all search requests in the aggregated event. `last` / `all`|`last`|
327
+
| scoring.show_ranking_score | Was `showRankingScore` used in the aggregated event? If yes, `true`, otherwise `false`|`false`|
328
+
| scoring.show_ranking_score_details | Was `showRankingScoreDetails` used in the aggregated event? If yes, `true`, otherwise `false`|`false`|
0 commit comments