Skip to content

Commit 94317c9

Browse files
committed
Detect the option highlight in Discovery node
1 parent 4697555 commit 94317c9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Node-RED Watson Nodes for IBM Cloud
99

1010
### New in version 0.6.8
1111
- Move all Discovery calls to latest API version - 2017-11-07
12-
- Updated calls to deprecated discovery methods addJsonDocument and getCollections
12+
- Updated calls to deprecated discovery methods addJsonDocument and getCollections
1313
- Correct implemetation of passages related options
14+
- Allow highlight option to be specified in Discovery overrides - msg.discoveryparams
1415

1516
### New in version 0.6.7
1617
- Enable Opt-out option for Conversation Node.

services/discovery/discovery-utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ DiscoveryUtils.prototype = {
125125

126126
['environment_id', 'collection_id', 'configuration_id',
127127
'collection_name', 'language_code',
128-
'passages', 'description', 'size', 'filename'
128+
'passages', 'description', 'size', 'filename',
129+
'highlight'
129130
].forEach(function(f) {
130131
params = me.buildParamsFor(msg, config, params, f);
131132
});

0 commit comments

Comments
 (0)