In previous version HS 5.X i was able to index non-mapped field but with the alpha 7 it's not working anymore :
Here the exemple :
Here the exception :
is there any way with the new version to do that ?
To answer your question, yes you can do that.
If this property is derived from actually persisted properties, you can tell Hibernate Search which ones, so that your entity will be properly reindexed on updates. Annotate the property like this:
If this property is really transient (i.e. it is not derived from persisted properties), or if you don't care about reindexing on updates, you can simply annotate it with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.NO).
maybe we could improve the error message then? If the property is transient, it won't be mapped for ORM so, for sure, it will be unknown. We should point the user to @IndexingDependency.
Closing this ticket since I created HSEARCH-3634.
Thanks for the heads-up!