Skip to content

Commit

Permalink
HSEARCH-3103 Fix SortDslIT
Browse files Browse the repository at this point in the history
Now that we use SortedNumericDocValues, the native sort types expecting
"single-valued" docvalues such as INT won't work anymore.
  • Loading branch information
yrodiere committed Mar 19, 2020
1 parent 6447651 commit 2a06efc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -288,14 +288,14 @@ public void lucene() {
.sort( f -> f.fromLuceneSort(
new Sort(
new SortField( "genre_sort", SortField.Type.STRING ),
new SortField( "pageCount", SortField.Type.INT )
SortField.FIELD_DOC
)
) )
.fetchHits( 20 );
// end::lucene-fromLuceneSort[]
assertThat( hits )
.extracting( Book::getId )
.containsExactly( BOOK4_ID, BOOK2_ID, BOOK1_ID, BOOK3_ID );
.containsExactly( BOOK4_ID, BOOK1_ID, BOOK2_ID, BOOK3_ID );
} );

withinSearchSession( searchSession -> {
Expand Down

0 comments on commit 2a06efc

Please sign in to comment.