mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-21 19:42:10 +00:00
parent
a5fb7a3c76
commit
ed1c416cd3
@ -226,7 +226,7 @@ public class BaseQuery implements Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Ids for a multi-get request with on this query.
|
||||
* Set Ids for a multi-get request run with this query. Not used in any other searches.
|
||||
*
|
||||
* @param ids list of id values
|
||||
*/
|
||||
@ -255,7 +255,7 @@ public class BaseQuery implements Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Ids with routing values for a multi-get request set on this query.
|
||||
* Set Ids with routing values for a multi-get request run with this query. Not used in any other searches.
|
||||
*
|
||||
* @param idsWithRouting list of id values, must not be {@literal null}
|
||||
* @since 4.3
|
||||
|
@ -250,6 +250,11 @@ public abstract class BaseQueryBuilder<Q extends BaseQuery, SELF extends BaseQue
|
||||
return self();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Ids for a multi-get request run with this query. Not used in any other searches.
|
||||
*
|
||||
* @param ids list of id values
|
||||
*/
|
||||
public SELF withIds(String... ids) {
|
||||
|
||||
this.ids.clear();
|
||||
@ -257,6 +262,11 @@ public abstract class BaseQueryBuilder<Q extends BaseQuery, SELF extends BaseQue
|
||||
return self();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Ids for a multi-get request run with this query. Not used in any other searches.
|
||||
*
|
||||
* @param ids list of id values
|
||||
*/
|
||||
public SELF withIds(Collection<String> ids) {
|
||||
|
||||
Assert.notNull(ids, "ids must not be null");
|
||||
@ -372,6 +382,12 @@ public abstract class BaseQueryBuilder<Q extends BaseQuery, SELF extends BaseQue
|
||||
return self();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Ids with routing values for a multi-get request run with this query. Not used in any other searches.
|
||||
*
|
||||
* @param idsWithRouting list of id values, must not be {@literal null}
|
||||
* @since 4.3
|
||||
*/
|
||||
public SELF withIdsWithRouting(List<Query.IdWithRouting> idsWithRouting) {
|
||||
|
||||
Assert.notNull(idsWithRouting, "idsWithRouting must not be null");
|
||||
|
Loading…
x
Reference in New Issue
Block a user