[hibernate-issues] [JIRA] (HSEARCH-3325) Search 6 groundwork - Restore support for full-text filters
Yoann Rodière (JIRA)
jira at hibernate.atlassian.net
Fri Mar 13 03:10:56 EDT 2020
Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *commented* on HSEARCH-3325 ( https://hibernate.atlassian.net/browse/HSEARCH-3325?atlOrigin=eyJpIjoiM2I1N2E2ZDA2YmViNDYwNGE0ODgwNTJkYjEwNmVjNTciLCJwIjoiaiJ9 )
Re: Search 6 groundwork - Restore support for full-text filters ( https://hibernate.atlassian.net/browse/HSEARCH-3325?atlOrigin=eyJpIjoiM2I1N2E2ZDA2YmViNDYwNGE0ODgwNTJkYjEwNmVjNTciLCJwIjoiaiJ9 )
We're already working on making nested predicates optional in HSEARCH-3752 ( https://hibernate.atlassian.net/browse/HSEARCH-3752 ) Pull Request Sent , so the part you added about getting the nested path won't be useful in the next version of Hibernate Search.
In the light of this, what exactly do full-text filters bring compared to this solution, which is simpler and type-safe?
public static class TestFilterFactory {
public SearchPredicate filter(SearchPredicateFactory f, String match) {
return f.match().field( fieldPath )
.matching( match )
.toPredicate();
}
}
() -> scope.query()
.where( f -> f.bool()
.minimumShouldMatchNumber( 3 )
.should( TestFilterFactory.filter( "match_fieldName" , "blablabla" ) )
.should( TestFilterFactory.filter( "nested.match_fieldName" , "blablabla" ) );
} ).toQuery()
( https://hibernate.atlassian.net/browse/HSEARCH-3325#add-comment?atlOrigin=eyJpIjoiM2I1N2E2ZDA2YmViNDYwNGE0ODgwNTJkYjEwNmVjNTciLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3325#add-comment?atlOrigin=eyJpIjoiM2I1N2E2ZDA2YmViNDYwNGE0ODgwNTJkYjEwNmVjNTciLCJwIjoiaiJ9 )
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#100121- sha1:a2b3dcc )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200313/09a9cf35/attachment.html
More information about the hibernate-issues
mailing list