What steps will reproduce the problem?
1. Create an entity that contains an embedded entity that contains a collection
annotated with @Index
2. Attempt to save the entity
What is the expected output? What do you see instead?
Expecting successful save, getting exception for unsupported type for the
collection type
What version of the product are you using? On what operating system?
5.0.2
Please provide any additional information below.
This is caused because the collection is stored as a value in the map in
SaveContext.addIndex(), instead of each value being added, and results in
attempt to save the field as a two-dimensional collection.
I created a patch that resolves this by adding the values correctly with
putAll() instead of put() in case of Iterable type.
Original issue reported on code.google.com by guz...@gmail.com on 25 Apr 2014 at 2:37
Original issue reported on code.google.com by
guz...@gmail.com
on 25 Apr 2014 at 2:37Attachments: