Skip to content

Commit b9b1d19

Browse files
committed
add searchHighlight as a type
1 parent 7978e4f commit b9b1d19

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

generator/config/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@
184184
"decimal",
185185
"searchPath",
186186
"searchScore",
187-
"searchOperator"
187+
"searchOperator",
188+
"searchHighlight"
188189
]
189190
}
190191
},

generator/config/search/in.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ tests:
3535
birthdate: 1
3636
schema:
3737
customers: &ref_0
38+
_id:
39+
types:
40+
- bsonType: ObjectId
3841
username:
3942
types:
4043
- bsonType: String

generator/config/stage/search.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ arguments:
2424
- name: highlight
2525
optional: true
2626
type:
27-
- object
27+
- searchHighlight
2828
description: |
2929
Specifies the highlighting options for displaying search terms in their original context.
3030
- name: concurrent

0 commit comments

Comments
 (0)