diff --git a/engine/src/test/java/org/hibernate/search/test/sorting/SortingTest.java b/engine/src/test/java/org/hibernate/search/test/sorting/SortingTest.java index b83a6fc01f0..e5e686305e2 100644 --- a/engine/src/test/java/org/hibernate/search/test/sorting/SortingTest.java +++ b/engine/src/test/java/org/hibernate/search/test/sorting/SortingTest.java @@ -30,6 +30,7 @@ import org.hibernate.search.annotations.Fields; import org.hibernate.search.annotations.Indexed; import org.hibernate.search.annotations.IndexedEmbedded; +import org.hibernate.search.annotations.SortableField; import org.hibernate.search.annotations.SortableFields; import org.hibernate.search.annotations.Store; import org.hibernate.search.annotations.TokenFilterDef; @@ -415,7 +416,8 @@ private class Person { @SortableFields({ @org.hibernate.search.annotations.SortableField(forField = "ageForStringSorting"), - @org.hibernate.search.annotations.SortableField(forField = "ageForIntSorting") + @org.hibernate.search.annotations.SortableField(forField = "ageForIntSorting"), + @org.hibernate.search.annotations.SortableField(forField = "ageForNullChecks") }) @Fields({ @Field(name = "ageForStringSorting", store = Store.YES, analyze = Analyze.NO, bridge = @FieldBridge(impl = IntegerBridge.class) ), @@ -443,6 +445,7 @@ private class Person { final List friends; @Field + @SortableField @IndexedEmbedded//TODO improve error message when this is missing Integer[] array;