Document in the migration guide that sort by Long @Id doesn't work anymore

Description

I recently upgraded from 5.3.0.Final to 5.6.0.Alpha3, following the migration guide.

As soon as I did I noticed that sorting HS queries by "id" field (id is the name of the property that I have annotated with @Id) simply fails silently. I.e., no exception is thrown, but results are not sorted by id. This property is of type Long, which means that the Lucene field is of type NUMERIC.

I then saw the following warning emitted by Hibernate whenever I run my query:

Ok, I added the @SortableField annotation and reindexed, then tried running the query again. This time I got an exception:

I tried changing the type in my SortField but alas - the SortField.Type enum doesn't contain a value named "SORTED".

Environment

Win10x64, JDK 8

Assignee

Guillaume Smet

Reporter

Ido Dovrat

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Affects versions

Priority

Major
Configure