[hibernate-issues] [JIRA] (HSEARCH-3885) Throw exceptions when attempting to use predicate with incompatible nested path hiearchy in a nested predicate

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Mon Apr 6 08:49:50 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiM2M1ZjE2MGRmZWI1NGYyOTgwODgxMjMwNDcxZjNkMTgiLCJwIjoiaiJ9 ) / Improvement ( https://hibernate.atlassian.net/browse/HSEARCH-3885?atlOrigin=eyJpIjoiM2M1ZjE2MGRmZWI1NGYyOTgwODgxMjMwNDcxZjNkMTgiLCJwIjoiaiJ9 ) HSEARCH-3885 ( https://hibernate.atlassian.net/browse/HSEARCH-3885?atlOrigin=eyJpIjoiM2M1ZjE2MGRmZWI1NGYyOTgwODgxMjMwNDcxZjNkMTgiLCJwIjoiaiJ9 ) Throw exceptions when attempting to use predicate with incompatible nested path hiearchy in a nested predicate ( https://hibernate.atlassian.net/browse/HSEARCH-3885?atlOrigin=eyJpIjoiM2M1ZjE2MGRmZWI1NGYyOTgwODgxMjMwNDcxZjNkMTgiLCJwIjoiaiJ9 )

Issue Type: Improvement Assignee: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) Components: backend-elasticsearch, backend-lucene Created: 06/Apr/2020 05:49 AM Fix Versions: 6.0.0.Beta-backlog-low-priority Priority: Major Reporter: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

E.g.:

.where( f -> f.nested().objectField( "nestedObject" )
       .nested( f.match().field( "anotherNestedObject.someText" ) )

"anotherNestedObject.someText" is not contained in "nestedObject", so this cannot work. We should detect that and throw an exception.

( https://hibernate.atlassian.net/browse/HSEARCH-3885#add-comment?atlOrigin=eyJpIjoiM2M1ZjE2MGRmZWI1NGYyOTgwODgxMjMwNDcxZjNkMTgiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3885#add-comment?atlOrigin=eyJpIjoiM2M1ZjE2MGRmZWI1NGYyOTgwODgxMjMwNDcxZjNkMTgiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:c7667cc )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200406/050b32f0/attachment.html 


More information about the hibernate-issues mailing list