After having troubles today with booleans with @IndexedEmbedded and @OneToMany relation, I’ve noticed that all the booleans values in the list are set base on the first element. However,
I’ve debugged a little bit the indexer and found out in /org/hibernate/search/elasticsearch/impl/ElasticsearchIndexWorkVisitor.java:323
this line of code:
Boolean value = (Boolean) ( (TwoWayFieldBridge) fieldBridge ).get( field.name(), document );
which basically indicate to take always the first value and set it to the field without taking care of what is the index of that field.
is it how it should work, or is it a bug that you are aware of?