# Transient field with PropertyBinding

**URL:** <https://discourse.hibernate.org/t/transient-field-with-propertybinding/6540>\
**Category:** Hibernate Search\
**Created:** [August 1, 2022, 8:27am UTC](https://discourse.hibernate.org/t/transient-field-with-propertybinding/6540 "2022-08-01T08:27:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monkiki](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/monkiki/32/850_2.png) [@Monkiki](https://discourse.hibernate.org/u/Monkiki)\
**Post date:** [August 1, 2022, 8:27am UTC](https://discourse.hibernate.org/t/transient-field-with-propertybinding/6540/1 "2022-08-01T08:27:40Z")

</div>

Hello,

I have this field definition:

```auto
@Transient
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.NO)
@PropertyBinding(binder = @PropertyBinderRef(type = PropertiesValueBinder.class))
protected Map<String, String> properties = new HashMap<>();

```

But is causing problems:

```auto
HSEARCH800007: Unable to resolve path '.properties' to a persisted attribute in Hibernate ORM metadata. If this path points to a transient attribute, use @IndexingDependency(derivedFrom = ...) to specify which persisted attributes it is derived from. See the reference documentation for more information.

```

In my case, this transient field does not depends on another entity atribute but a value stored elsewhere. In Hibernate Search 5 I managed to implement a field bridge which retrieved this information and added to the Lucene document, but not sure how to deal with this scenario in Hibernate Search 6.

---

<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:** [August 1, 2022, 8:35am UTC](https://discourse.hibernate.org/t/transient-field-with-propertybinding/6540/2 "2022-08-01T08:35:09Z")

</div>

Hi,

I think your `@IndexingDependency` is not being applied correctly.

Can you try this?

```auto
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.NO, extraction = @ContainerExtraction(extract = ContainerExtract.NO))

```

In this case I agree this _is_ more complicated than it ought to be, but improvements are planned in this area ([HSEARCH-4271](https://hibernate.atlassian.net/browse/HSEARCH-4271)).

---

<div class="post-metadata">

**Author:** ![Monkiki](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/monkiki/32/850_2.png) [@Monkiki](https://discourse.hibernate.org/u/Monkiki)\
**Post date:** [August 1, 2022, 9:27am UTC](https://discourse.hibernate.org/t/transient-field-with-propertybinding/6540/3 "2022-08-01T09:27:19Z")

</div>

Using the @IndexingDependency annotation this way seems to work. Or at least no error is given.

Thanks 🙂
