[hibernate-issues] [JIRA] (HSEARCH-3839) Sorting by numeric value has an exception "(expected=NUMERIC). Use UninvertingReader or index with docvalues"

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Tue Feb 25 13:04:15 EST 2020


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

Re: Sorting by numeric value has an exception "(expected=NUMERIC). Use UninvertingReader or index with docvalues" ( https://hibernate.atlassian.net/browse/HSEARCH-3839?atlOrigin=eyJpIjoiMTM2ZjhiMmJhMmU2NGI4OTkxOTAxMWExMDI1NzllOWMiLCJwIjoiaiJ9 )

Indeed we should use SortedNumericDocValuesField. This is planned for some future Beta of Hibernate Search 6, see HSEARCH-3103 ( https://hibernate.atlassian.net/browse/HSEARCH-3103 ) Open.

At the moment we have internal metadata to let us know that a given field is multi-valued or not, but we don't use it. We should use the metadata to pick the correct field type at indexing time, and maybe to build sorts differently at query time (I suppose we have to pick between min/max/avg/etc. when there are multiple values for a single document).

We'll get there eventually; if you need this soon and can spend some time on this, we will gladly accept a contribution!

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

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:a269fed )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200225/4a2e23f1/attachment.html 


More information about the hibernate-issues mailing list