Hello ,
I have a question actually I have three entities
App
Bug
Stacktrace
lets say bug table has app entity as embedded in it
and stacktrace table has bug entity embedded in it
- I want to search stacktrace entity on bug.app.name field or bug.app field ,
but hibernate search is giving org.hibernate.search.exception.SearchException: Unable to find field bug.app in com.acra.crashanalytics.model.Stacktrace
at org.hibernate.search.engine.spi.DocumentBuilderIndexedEntity.objectToString(DocumentBuilderIndexedEntity.java:1051) ~[hibernate-search-engine-5.8.1.Final.jar:5.8.1.Final]
at org.hibernate.search.query.dsl.impl.FieldContext.objectToString(FieldContext.java:75) ~[hibernate-search-engine-5.8.1.Final.jar:5.8.1.Final]
at org.hibernate.search.query.dsl.impl.ConnectedMultiFieldsTermQueryBuilder.buildSearchTerm(ConnectedMultiFieldsTermQueryBuilder.java:144) ~[hibernate-search-engine-5.8.1.Final.jar:5.8.1.Final]
at org.hibernate.search.query.dsl.impl.ConnectedMultiFieldsTermQueryBuilder.createQuery(ConnectedMultiFieldsTermQueryBuilder.java:106) ~[hibernate-search-engine-5.8.1.Final.jar:5.8.1.Final]
at org.hibernate.search.query.dsl.impl.ConnectedMultiFieldsTermQueryBuilder.createQuery(ConnectedMultiFieldsTermQueryBuilder.java:68) ~[hibernate-search-engine-5.8.1.Final.jar:5.8.1.Final]
Please let me know what is the solution for this