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=eyJpIjoiYWFkNTg5...
) / Bug (
https://hibernate.atlassian.net/browse/HSEARCH-3846?atlOrigin=eyJpIjoiYWF...
) HSEARCH-3846 (
https://hibernate.atlassian.net/browse/HSEARCH-3846?atlOrigin=eyJpIjoiYWF...
) NestedDocsProvider.childDocs always returns all results. (
https://hibernate.atlassian.net/browse/HSEARCH-3846?atlOrigin=eyJpIjoiYWF...
)
Change By: Waldemar Kłaczyński (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
NestedDocsProvider.childDocs always returns all results. Regardless of the nested filter.
Parent query works correctly, if the nested query has no results then the document is not
returned. Nevertheless, the results that do not meet the filter condition are also taken
for sorting.
{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 )