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

Gunnar Morling gunnar at hibernate.org
Wed Sep 23 16:59:58 EDT 2015


What is the exact behaviour you observe?

2015-09-23 22:53 GMT+02:00 Guillaume Smet <guillaume.smet at gmail.com>:
> 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
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev


More information about the hibernate-dev mailing list