{ "index": "function(doc){\n index(\"default\", doc.sample.name);\n if(doc.grouping)                  {\n index(\"grouping\",    doc.grouping, {\"store\": \"yes\"});\n} if(doc.grouping)                  {\n index(\"experiment\",  doc.grouping, {\"store\": \"yes\"});\n} if(doc.sample.name)             {\n index(\"name\",        doc.sample.name, {\"store\": \"yes\"});\n} if(doc.sample.description)      {\n index(\"description\", doc.sample.description, {\"store\": \"yes\"});\n} if(doc.sample.id)               {\n index(\"id\",          doc.sample.id, {\"store\": \"yes\"});\n} if(doc.sample.source)           {\n index(\"source\",      doc.sample.source, {\"store\": \"yes\"});\n} if(doc.sample.owner.name)       {\n index(\"owner\",       doc.sample.owner.name, {\"store\": \"yes\"});\n} if(doc.measurement.institution)      {\n index(\"institution\",  doc.measurement.institution, {\"store\": \"yes\"});\n} if(doc.measurement.technique)        {\n index(\"technique\",    doc.measurement.technique, {\"store\": \"yes\"});\n} if(doc.measurement.date)             {\n index(\"date\",         doc.measurement.date, {\"store\": \"yes\"});\n} if(doc.measurement.requestor.name)   {\n index(\"requestor\",    doc.measurement.requestor.name, {\"store\": \"yes\"});\n} if(doc.measurement.practitioner.name){\n index(\"practitioner\", doc.measurement.practitioner.name, {\"store\": \"yes\"});\n}      \n}"
       }

{ "index": "function(doc){\n index(\"default\", doc.sample.name); }"}

Simplify to search function to restore minimal search functionality - after uploading the EXO data to Cloudant things stopped working properly
Simplify to search function to restore minimal search functionality - after uploading the EXO data to Cloudant things stopped working properly
