[hibernate-dev] [Search] Something fishy with sort by id

Guillaume Smet guillaume.smet at gmail.com
Wed Sep 23 16:53:47 EDT 2015


Hi,

After the upgrade to Search 5.5 (I think we skipped 5.4 on this app), I
have a weird behavior when I sort by id.

My id is a Long just indexed with @DocumentId:
    @Id
    @DocumentId
    private Long id;

and my sort is defined like this:
fullTextQuery.setSort(new Sort(new SortField("id", SortField.Type.LONG,
true)));

Everything was reindexed.

It used to work before. Is this something expected?

-- 
Guillaume


More information about the hibernate-dev mailing list