Waldemar Kłaczyński (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiOTM5NzAx...
) / Bug (
https://hibernate.atlassian.net/browse/HSEARCH-3846?atlOrigin=eyJpIjoiOTM...
) HSEARCH-3846 (
https://hibernate.atlassian.net/browse/HSEARCH-3846?atlOrigin=eyJpIjoiOTM...
) Sort by NestedDocsProvider.childDocs always returns all results. (
https://hibernate.atlassian.net/browse/HSEARCH-3846?atlOrigin=eyJpIjoiOTM...
)
Change By: Waldemar Kłaczyński (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Sort by NestedDocsProvider.childDocs always returns all results. The situation is not
recommended. If the final results themselves do not contain elements contained in the
filter, then they should not sort by these values. As a result, the sorted items do not
match and the calculated values.
{noformat} PredicateFinalStep filter = scope.predicate()
.nested().objectField( "nested" ).nest( (f) -> {
return f.match().field( "nested.active" ).matching( true );
} );
SearchQuery<DocumentReference> query = scope.query()
.where( f -> {
return f.bool().must( f.matchAll() )
.filter( filter );
} )
.sort( f -> f.field( "nested.additionalDoubleField" ).asc().multi().min() )
.toQuery();{noformat}
[
https://github.com/hibernate/hibernate-search/pull/2224/commits/cba704149...]
(
https://hibernate.atlassian.net/browse/HSEARCH-3846#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3846#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#100121- sha1:090dddf )