[TEST] SearchDocumentationIT#testSearch to sort on _uid instead of _id

This commit is contained in:
javanna 2017-07-21 11:15:07 +02:00 committed by Luca Cavanna
parent 91fe8d5366
commit c4c1e909a3
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ public class SearchDocumentationIT extends ESRestHighLevelClientTestCase {
// tag::search-source-sorting
sourceBuilder.sort(new ScoreSortBuilder().order(SortOrder.DESC)); // <1>
sourceBuilder.sort(new FieldSortBuilder("_id").order(SortOrder.ASC)); // <2>
sourceBuilder.sort(new FieldSortBuilder("_uid").order(SortOrder.ASC)); // <2>
// end::search-source-sorting
// tag::search-source-filtering-off