Skip to content

Commit ed1c416

Browse files
authored
Javadoc
Original Pull Request spring-projects#2516 Closes spring-projects#2515
1 parent a5fb7a3 commit ed1c416

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/main/java/org/springframework/data/elasticsearch/core/query/BaseQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public void setMinScore(float minScore) {
226226
}
227227

228228
/**
229-
* Set Ids for a multi-get request with on this query.
229+
* Set Ids for a multi-get request run with this query. Not used in any other searches.
230230
*
231231
* @param ids list of id values
232232
*/
@@ -255,7 +255,7 @@ public List<IdWithRouting> getIdsWithRouting() {
255255
}
256256

257257
/**
258-
* Set Ids with routing values for a multi-get request set on this query.
258+
* Set Ids with routing values for a multi-get request run with this query. Not used in any other searches.
259259
*
260260
* @param idsWithRouting list of id values, must not be {@literal null}
261261
* @since 4.3

src/main/java/org/springframework/data/elasticsearch/core/query/BaseQueryBuilder.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,23 @@ public SELF withMaxResults(Integer maxResults) {
250250
return self();
251251
}
252252

253+
/**
254+
* Set Ids for a multi-get request run with this query. Not used in any other searches.
255+
*
256+
* @param ids list of id values
257+
*/
253258
public SELF withIds(String... ids) {
254259

255260
this.ids.clear();
256261
this.ids.addAll(Arrays.asList(ids));
257262
return self();
258263
}
259264

265+
/**
266+
* Set Ids for a multi-get request run with this query. Not used in any other searches.
267+
*
268+
* @param ids list of id values
269+
*/
260270
public SELF withIds(Collection<String> ids) {
261271

262272
Assert.notNull(ids, "ids must not be null");
@@ -372,6 +382,12 @@ public SELF withRequestCache(@Nullable Boolean requestCache) {
372382
return self();
373383
}
374384

385+
/**
386+
* Set Ids with routing values for a multi-get request run with this query. Not used in any other searches.
387+
*
388+
* @param idsWithRouting list of id values, must not be {@literal null}
389+
* @since 4.3
390+
*/
375391
public SELF withIdsWithRouting(List<Query.IdWithRouting> idsWithRouting) {
376392

377393
Assert.notNull(idsWithRouting, "idsWithRouting must not be null");

0 commit comments

Comments
 (0)