We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea48bf5 commit c627855Copy full SHA for c627855
src/main/java/org/springframework/data/elasticsearch/repository/query/ElasticsearchStringQuery.java
@@ -62,6 +62,8 @@ protected Query createQuery(ParametersParameterAccessor parameterAccessor) {
62
String queryString = new StringQueryUtil(elasticsearchOperations.getElasticsearchConverter().getConversionService())
63
.replacePlaceholders(this.queryString, parameterAccessor);
64
65
- return new StringQuery(queryString);
+ var query = new StringQuery(queryString);
66
+ query.addSort(parameterAccessor.getSort());
67
+ return query;
68
}
69
0 commit comments