# Facets from an object graph

**URL:** <https://community.bloomreach.com/t/facets-from-an-object-graph/446>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [September 26, 2018, 10:40am UTC](https://community.bloomreach.com/t/facets-from-an-object-graph/446 "2018-09-26T10:40:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vachi\_chuong](https://avatars.discourse-cdn.com/v4/letter/v/5fc32e/32.png) [@vachi\_chuong](https://community.bloomreach.com/u/vachi_chuong)\
**Post date:** [September 26, 2018, 10:40am UTC](https://community.bloomreach.com/t/facets-from-an-object-graph/446/1 "2018-09-26T10:40:49Z")

</div>

Hi guys,  
I have an object whose attributes are made of another compound objects rather than primitive strings or integers and I need to do facets from them.  
In the official documentation , making facets from date attribute of the NewsDocument , filtering by year is done with :

hippofacnav:facets

- myproject:brand
- myproject:date$year

I need something similar , but for a compound object like :  
Event -\> TimePeriod -\> Calendar

Following the previous example , I tried this without results :  
hippofacnav:facets

- myproject:TimePeriod$Calendar$year

Is there a way to do that?

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [September 27, 2018, 10:49am UTC](https://community.bloomreach.com/t/facets-from-an-object-graph/446/2 "2018-09-27T10:49:25Z")

</div>

Unfortunately faceted navigation only works on direct properties of documents, not of compounds. If you have a reason why you want/need to use a compound for these properties, you can use a derived data function to set them in “hidden” properties on the document node.

---

<div class="post-metadata">

**Author:** ![vachi](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@vachi](https://community.bloomreach.com/u/vachi)\
**Post date:** [September 28, 2018, 10:35am UTC](https://community.bloomreach.com/t/facets-from-an-object-graph/446/3 "2018-09-28T10:35:54Z")

</div>

Thanks Jasper, will try to use derived data for it.
