File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/main/java/org/elasticsearch/action/index Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments