Add back string op type to IndexRequest
This was removed by accident I think, and it breaks backward comp. on the Java API in minor 1.3 version closes #7387
This commit is contained in:
parent
887bd0a9c2
commit
ffcc78ca04
|
@ -483,6 +483,15 @@ public class IndexRequest extends ShardReplicationOperationRequest<IndexRequest>
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a string representation of the {@link #opType(org.elasticsearch.action.index.IndexRequest.OpType)}. Can
|
||||
* be either "index" or "create".
|
||||
*/
|
||||
public IndexRequest opType(String opType) throws ElasticsearchIllegalArgumentException {
|
||||
return opType(OpType.fromString(opType));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set to <tt>true</tt> to force this index to use {@link OpType#CREATE}.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue