Hi Pablo,
I assume you have created search index to retrieve data from cloudant database. This gives you flexibility to fetch records based on index which you create.
For example: if you happen to create a search index named - <my_index>, you need to pass payload to cloudant search node as - msg.payload="<my_index>:"+msg.payload; Note - you need to pass your form data as argument (highlighted one).
While creating index on database you are allowed to edit "search index function", you can write your search logic here by editing the function.
Sample search index function -
function(doc) {
index("default", doc._id);
if (doc.min_length) {
index("min_length", doc.min_length, {"store": true});
}
if (doc.diet) {
index("diet", doc.diet, {"store": true});
}
if (doc.latin_name) {
index("latin_name", doc.latin_name, {"store": true});
}
if (doc.class) {
index("class", doc.class, {"store": true});
}
}