# @IndexingDependency verbosity

**URL:** <https://discourse.hibernate.org/t/indexingdependency-verbosity/5784>\
**Category:** Hibernate Search\
**Created:** [October 19, 2021, 2:25pm UTC](https://discourse.hibernate.org/t/indexingdependency-verbosity/5784 "2021-10-19T14:25:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fraf](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/fraf/32/1614_2.png) [@fraf](https://discourse.hibernate.org/u/fraf)\
**Post date:** [October 19, 2021, 2:25pm UTC](https://discourse.hibernate.org/t/indexingdependency-verbosity/5784/1 "2021-10-19T14:25:18Z")

</div>

Hi guys,

Just a rapid question about the @IndexingDependency verbosity annotation :

when I specify a full path like this :

```auto
@IndexingDependency(derivedFrom = {
			@ObjectPath({
					@PropertyValue(propertyName = Depot_.DEPOT_INITIAL),
					@PropertyValue(propertyName = Depot_.DOCUMENTS_DEPOT),
					@PropertyValue(propertyName = DocumentDepot_.COMMENTAIRE)
			})
})

```

> with DocumentDepot\_.COMMENTAIRE being the only primitive JavaType (end of path).

Do I have to specify the partial path like this also ? :

```auto
@IndexingDependency(derivedFrom = {
			@ObjectPath({
					@PropertyValue(propertyName = Depot_.DEPOT_INITIAL)
			}),
			@ObjectPath({
					@PropertyValue(propertyName = Depot_.DEPOT_INITIAL),
					@PropertyValue(propertyName = Depot_.DOCUMENTS_DEPOT)
			}),
			@ObjectPath({
					@PropertyValue(propertyName = Depot_.DEPOT_INITIAL),
					@PropertyValue(propertyName = Depot_.DOCUMENTS_DEPOT),
					@PropertyValue(propertyName = DocumentDepot_.COMMENTAIRE)
			})
})

```

because, when we do, for example, setDepotInitial(…) in the entity object, or setDocumentsDepot(…), the indexed field DocumentDepot\_.COMMENTAIRE may have changed also. We don’t need necessarily to call to setCommentaire to trigger the reindexation. Do you see what I mean ?

Thx.

---

<div class="post-metadata">

**Author:** ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)\
**Post date:** [October 19, 2021, 2:42pm UTC](https://discourse.hibernate.org/t/indexingdependency-verbosity/5784/2 "2021-10-19T14:42:24Z")

</div>

Hey,

> [@fraf](#):
>
> Do I have to specify the partial path like this also

No, you don’t, it’s implicit. Hibernate Search is aware that changing any part of the path can change the “leaf”, and will act accordingly.
