File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 301
301
302
302
< script type ="text/x-red " data-help-name ="cloudant in ">
303
303
< p >
304
- A node for searching a Cloudant database using a Search Index .
304
+ A node for searching documents in a Cloudant database .
305
305
</ p >
306
306
< p >
307
- Query is performed on existing < b > Search Indexes < / b > s t o r e d o n t h e d e s i r e d
308
- database . The query argument should be passed on the < code > msg . payload < / c o d e >
309
- following the < code > indexName:value</ code > pattern .
307
+ Searching for a document can be done in two modes: directly by using the
308
+ document < b > _id < / b > o r b y u s i n g a n e x i s t i n g < a
309
+ href = "https://cloudant.com/for-developers/search/" target = "_blank" > Search
310
+ Index < / a > .
311
+ </p >
312
+ < p >
313
+ When querying using the < b > _id</ b > option, the < code > _id</ code > should be
314
+ passed in the < code > msg.payload</ code > as a string.
315
+ </ p >
316
+ < p >
317
+ To use an existing < b > Search Index < / b > s t o r e d o n t h e d e s i r e d d a t a b a s e , t h e
318
+ query argument should be passed on the < code > msg . payload < / c o d e > f o l l o w i n g
319
+ the < code > indexName:value</ code > pattern . The index must be created beforehand
320
+ on the database .
310
321
< / p >
311
322
</ script >
You can’t perform that action at this time.
0 commit comments