Assume I have many products with an array of colors each. I can index('string', 'color', color[i]) each color from each array individually for a facet search/count, and that works fine, they’re counted correctly. However, if I return the indexed fields with {"store": true}, only the last emitted color per product is returned in the fields section.
Steps to Reproduce
In a CouchDB with activated Nouveau, with a running Nouveau server:
Have some docs with an array of values, eg. "colors": ["mauve", "fuchsia", "ennui"]
Add a Nouveau string index for that key (newlines for readability only):
Description
Assume I have many products with an array of colors each. I can
index('string', 'color', color[i])
each color from each array individually for a facet search/count, and that works fine, they’re counted correctly. However, if I return the indexed fields with{"store": true}
, only the last emitted color per product is returned in thefields
section.Steps to Reproduce
In a CouchDB with activated Nouveau, with a running Nouveau server:
"colors": ["mauve", "fuchsia", "ennui"]
string
index for that key (newlines for readability only):Send a counts query :
Expected Behaviour
Somehow get all colors per doc back in
fields
.Your Environment