Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiNzhlOGUx...
) / New Feature (
https://hibernate.atlassian.net/browse/HSEARCH-3943?atlOrigin=eyJpIjoiNzh...
) HSEARCH-3943 (
https://hibernate.atlassian.net/browse/HSEARCH-3943?atlOrigin=eyJpIjoiNzh...
) Projection nesting: preserving the document structure in projections (
https://hibernate.atlassian.net/browse/HSEARCH-3943?atlOrigin=eyJpIjoiNzh...
)
Issue Type: New Feature Assignee: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: backend-elasticsearch, backend-lucene, engine Created: 09/Jun/2020 01:37 AM
Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
As of HSEARCH-3391 (
https://hibernate.atlassian.net/browse/HSEARCH-3391 ) In Progress ,
given the following document:
{
"authors": [{
"firstName": "Daniel",
"lastName": "Abraham"
}, {
"firstName" "Ty",
"lastName": "Frank"
}]
}
... you can retrieve all values of "authors.firstName" in a single list (
List<String> , ["Daniel", "Ty"] ), and you can retrieve all
values of "authors.lastName" in another list ( List<String> ,
["Abraham", "Frank"] ). These projections are effectively flattened,
because the "authors" part of the structure is gone.
What you cannot do is retrieve all the pairs firstName / lastName. In order for that to be
possible, we would need some way to tell Hibernate Search "these two fields must be
grouped together for each author", similarly to the "nested" predicate.
Note that for the Elasticsearch backend we could make this "grouping" work
regardless of whether "authors" is nested or flattened, because we have the full
JSON. However, that's not the case for the Lucene backend.
Tickets depending on this: HSEARCH-3927 (
https://hibernate.atlassian.net/browse/HSEARCH-3927 ) Open
(
https://hibernate.atlassian.net/browse/HSEARCH-3943#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3943#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100128- sha1:85a81c0 )