Skip to content

Commit 97cd92a

Browse files
committed
fix(SearchHitItem): Add fields field for returning results of script_fields
closes #20
1 parent 46ec655 commit 97cd92a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/types/SearchHitItem.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export function getSearchHitItemTC(opts: SearchOptsT = {}): TypeComposer {
3939

4040
// return sort values for search_after
4141
sort: 'JSON',
42+
43+
fields: {
44+
type: 'JSON',
45+
description: 'Returns result from `script_fields`',
46+
},
4247
},
4348
})
4449
);

0 commit comments

Comments
 (0)