Skip to content

Commit 83257c8

Browse files
dadoonetkimchy
authored andcommitted
Add constructor IndexRequest(String index, String type) and fix javadoc
1 parent b2597b5 commit 83257c8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/main/java/org/elasticsearch/action/index/IndexRequest.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,22 @@ public IndexRequest() {
133133
}
134134

135135
/**
136-
* Constructs a new index request against the specific index. The {@link #type(String)},
137-
* {@link #id(String)} and {@link #source(byte[])} must be set.
136+
* Constructs a new index request against the specific index. The {@link #type(String)}
137+
* {@link #source(byte[])} must be set.
138138
*/
139139
public IndexRequest(String index) {
140140
this.index = index;
141141
}
142142

143+
/**
144+
* Constructs a new index request against the specific index and type. The
145+
* {@link #source(byte[])} must be set.
146+
*/
147+
public IndexRequest(String index, String type) {
148+
this.index = index;
149+
this.type = type;
150+
}
151+
143152
/**
144153
* Constructs a new index request against the index, type, id and using the source.
145154
*

0 commit comments

Comments
 (0)