Fixed
Details
Assignee
Yoann RodièreYoann RodièreReporter
Yoann RodièreYoann RodièreComponents
Sprint
NoneFix versions
Priority
Major
Details
Details
Assignee
Yoann Rodière
Yoann RodièreReporter
Yoann Rodière
Yoann RodièreComponents
Sprint
None
Fix versions
Priority
Created September 5, 2018 at 7:55 AM
Updated May 24, 2019 at 1:38 PM
Resolved May 15, 2019 at 6:40 AM
This may be necessary for further work, such as type-safe multi-valued projections, multi-valued field sorts, and more immediately stored fields in Lucene. So we should at least make sure that any multi-valued field will be declared as such, so that if we need this information in a later version of Hibernate Search, we can have it without backward-incompatible changes. If we never need this information, well, we can always relax the rules later.
Make the mapper tell the backend when nodes are to be considered as implicitly multivalued because of a multi-valued
@IndexedEmbedded
, or because of aContainerValueExtractor
.Check at runtime that each field only has one value if it’s not marked as multi-valued.
Do not allow sorting on a multi-valued field in the Lucene backend, and maybe in the ES backend too (depending on whether it works or not). => Actually no, we'll just use min/max sorts by default, just like Elasticsearch does. See HSEARCH-3103.
Do not allow projection on a multi-valued field for now. => Actually it's a bit complicated, we'll handle that we we address multi-valued projections. See HSEARCH-3391.