Skip to content

Commit 5568c7b

Browse files
authored
Add IndexQuery.builder() method.
Original Pull Request: #3041 Closes #3030 Signed-off-by: Peter-Josef Meisch <[email protected]>
1 parent 0359132 commit 5568c7b

File tree

1 file changed

+7
-0
lines changed
  • src/main/java/org/springframework/data/elasticsearch/core/query

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ public IndexQuery(@Nullable String id, @Nullable Object object, @Nullable Long v
5454
this.indexName = indexName;
5555
}
5656

57+
/**
58+
* @since 5.5
59+
*/
60+
public static IndexQueryBuilder builder() {
61+
return new IndexQueryBuilder();
62+
}
63+
5764
@Nullable
5865
public String getId() {
5966
return id;

0 commit comments

Comments
 (0)