[hibernate-issues] [JIRA] (HSEARCH-868) Support DISTINCT select on single field projection

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Mon May 25 12:40:04 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *commented* on HSEARCH-868 ( https://hibernate.atlassian.net/browse/HSEARCH-868?atlOrigin=eyJpIjoiMTEwODRlMWFjYmUzNDE5MTk5NWEyYTRiYmQxNjU2YmMiLCJwIjoiaiJ9 )

Re: Support DISTINCT select on single field projection ( https://hibernate.atlassian.net/browse/HSEARCH-868?atlOrigin=eyJpIjoiMTEwODRlMWFjYmUzNDE5MTk5NWEyYTRiYmQxNjU2YmMiLCJwIjoiaiJ9 )

On a related note, if you can use Hibernate Search 6 aggregations to retrieve a list of the top N distinct terms of a given field for all matching documents. See here ( https://discourse.hibernate.org/t/fulltextfield-analyzer-aggregation/4124/4 ) for an example.

That being said, you wouldn't get pagination.

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

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#100127- sha1:97b7618 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200525/e87c70c5/attachment.html 


More information about the hibernate-issues mailing list