File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
specs/composition-full/common/schemas Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,23 @@ injectedItem:
81
81
type : integer
82
82
minimum : 0
83
83
maximum : 20
84
+ metadata :
85
+ title : injectedItemMetadata
86
+ type : object
87
+ description : Used to add metadata to the results of the injectedItem.
88
+ properties :
89
+ hits :
90
+ title : injectedItemHitsMetadata
91
+ type : object
92
+ description : Adds the provided metadata to each injected hit via an `_extra` attribute.
93
+ properties :
94
+ addItemKey :
95
+ type : boolean
96
+ description : When true, the `_injectedItemKey` field is set in the `_extra` object of each affected hit.
97
+ extra :
98
+ type : object
99
+ additionalProperties : true
100
+ description : The user-defined key-value pairs that will be placed in the `_extra` field of each affected hit.
84
101
required :
85
102
- key
86
103
- source
Original file line number Diff line number Diff line change 19
19
$ref : ' #/rankingInfo'
20
20
_distinctSeqID :
21
21
$ref : ' ../../../../common/schemas/Hit.yml#/distinctSeqID'
22
+ _extra :
23
+ $ref : ' #/hitMetadata'
24
+
25
+ hitMetadata :
26
+ type : object
27
+ description : An object that contains the extra key-value pairs provided in the injectedItem definition.
28
+ additionalProperties : true
29
+ properties :
30
+ _injectedItemKey :
31
+ type : string
32
+ description : The key of the injectedItem that inserted this metadata.
22
33
23
34
rankingInfo :
24
35
allOf :
You can’t perform that action at this time.
0 commit comments