.setDefaultValueNumeric(9999)
.build();
SortOptions sortOptions = SortOptions.newBuilder()
.addSortExpression(sortExpression)
.build();
QueryOptions options = QueryOptions.newBuilder()
.setFieldsToReturn("numfield", "datefield")
.setSortOptions(sortOptions)
.build();
Query.Builder queryBuilder = Query.newBuilder().setOptions(options);
Results<ScoredDocument> results = index.search(queryBuilder.build(""));