Skip to content

Commit 290655d

Browse files
Update v1.js
took me quite some time to find out that the node.js api does not support the highlight parameter. Is there any reason for that? On my machine I just added this one word in line 668.
1 parent f49a367 commit 290655d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

discovery/v1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ DiscoveryV1.prototype.query = function(params, callback) {
665665
method: 'GET',
666666
json: true,
667667
path: pick(params, ['environment_id', 'collection_id']),
668-
qs: pick(params, ['query', 'natural_language_query', 'filter', 'aggregation', 'count', 'offset', 'return', 'sort', 'passages'])
668+
qs: pick(params, ['query', 'natural_language_query', 'filter', 'aggregation', 'count', 'offset', 'return', 'sort', 'passages', 'highlight'])
669669
},
670670
requiredParams: ['environment_id', 'collection_id'],
671671
defaultOptions: this._options

0 commit comments

Comments
 (0)