Aug 3rd, 2011, 03:33 AM
So far only using an explicit index name. Which would then be the same for all subclasses. Or push the field down to the actual domain classes.
Have quickly looked into the issue, the problem being that right now the current type (domain class) is not used at all at the internal, field-level API, so I have to change and extend that API for this to work.
As I'm going to rework this part anyway, it would be sensible to do that in the 1.2. timeframe using the Spring-Data-Commons mapping facilities (i.e. convenient analysis of reflection based meta-information of persistent types).
Aug 3rd, 2011, 06:41 AM
There is a workaround, either you query the index manually or create a repository for the class which contains the property. See the testcase on the jira issue.
Aug 3rd, 2011, 07:02 AM
Thanks. I'm getting the index of the NamedEntity.class now manually and it seems to work.