-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index transient fields #17
Comments
I am also interested in being able to store transient domain object fields in Elastic Search. My initial attempts were not successful - the fields are not added to the index. Is there a limitation on adding transitive fields to the index? |
Here is an example how i used transient props in grails-elasticsearch plugin: public String getCompositeName(){ Added I am using the searchable closure, so i adapted the method buildMappingFromOnlyExcept if (!propTransients.isEmpty()) { In DeepDomainClassMarshaller.groovy, i changed domainClass.getPersistantProperties to |
I've tried cthoma's fix and it works. Thanks for sharing here! |
There's a problem, if the transient property is trying to access id of current object, it's throwing an AssertionFailure in buildJSON() method in JSONDomainFactory. UPDATE: |
Is that possible?
The text was updated successfully, but these errors were encountered: