You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get annotations to work you have to explicitly define an id field in your domain class and annotate it with @documentid. Otherwise you get a SearchException "No document id".
It would be nice if this wasn't necessary.
Also, the documentation implies that the explicit id is not necessary. This is not so.
The text was updated successfully, but these errors were encountered:
thanks for your reply. I switched from declarative DSL to annotations recently. I had some problems with the DSL and class hierarchies though I can remember the exact issue. So I think annotations is the only option for me at the moment.
To get annotations to work you have to explicitly define an id field in your domain class and annotate it with @documentid. Otherwise you get a SearchException "No document id".
It would be nice if this wasn't necessary.
Also, the documentation implies that the explicit id is not necessary. This is not so.
The text was updated successfully, but these errors were encountered: