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
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.
0 commit comments