# Get list of all values for nested doc-properties

**URL:** <https://discuss.elastic.co/t/get-list-of-all-values-for-nested-doc-properties/185588>\
**Category:** Elasticsearch\
**Created:** [June 13, 2019, 8:58am UTC](https://discuss.elastic.co/t/get-list-of-all-values-for-nested-doc-properties/185588 "2019-06-13T08:58:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philipp\_Loew](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philipp_loew/32/48045_2.png) [@Philipp\_Loew](https://discuss.elastic.co/u/Philipp_Loew)\
**Post date:** [June 13, 2019, 8:58am UTC](https://discuss.elastic.co/t/get-list-of-all-values-for-nested-doc-properties/185588/1 "2019-06-13T08:58:23Z")

</div>

Hi there,

We have an product index with nested fields for variants.  
We have a new variant for each color, material, size, price (we aggregate offers).

RIght now i am facing an issue, that skipping through variants is random, next could be another price, another color, size or material.

I would like to provide users a Dropdown for each property with multi-values.

Like a dropdown for each color, where users can select the color.  
A dropdown for each REMAINING material and a dropdown for each REMAINING size if rest is already selected.

So i would like to aggregate and perform filters for each product.  
For prices of different shops i think we will build a list of prices as a sub of each variant.

For example:

We have a Levi’s jeans 501:

There is a length from 28 to 36  
There is a width from 28 to 36  
There is a cut: bootleg, skinny, ultra skinny, normal (or so i am not that fashion guy)  
There is a color: blue, black

And there are couple of other jeans brands and models.

So i would like to provide those dropdowns on a category page with all jeans brands / models and for each dropdowns for above mentioned properties.

In my mind its a pretty common, problem.

I could save a list of all available values and with them the correlated nested product. But i am not sure if this is a good solution.

Another

Does someone faced a similar problem and can help me?

THanks  
Philipp

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 11, 2019, 8:58am UTC](https://discuss.elastic.co/t/get-list-of-all-values-for-nested-doc-properties/185588/2 "2019-07-11T08:58:25Z")

</div>

Closed on July 11, 2019, 8:58am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
