[TEST] SearchDocumentationIT#testSearch to sort on _uid instead of _id
This commit is contained in:
parent
91fe8d5366
commit
c4c1e909a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue