File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -852,6 +852,15 @@ ES::type("my_type")->id(3)->update([
852
852
853
853
# [id is required]
854
854
```
855
+
856
+ ``` php
857
+ # Bulk update
858
+
859
+ ES::type("my_type")->bulk(function ($bulk){
860
+ $bulk->id(10)->update(["title" => "Test document 1","content" => "Sample content 1"]);
861
+ $bulk->id(11)->update(["title" => "Test document 2","content" => "Sample content 2"]);
862
+ });
863
+ ```
855
864
856
865
##### Incrementing field
857
866
``` php
@@ -913,6 +922,15 @@ ES::type("my_type")->id(3)->delete();
913
922
# [id is required]
914
923
```
915
924
925
+ ``` php
926
+ # Bulk delete
927
+
928
+ ES::type("my_type")->bulk(function ($bulk){
929
+ $bulk->id(10)->delete();
930
+ $bulk->id(11)->delete();
931
+ });
932
+ ```
933
+
916
934
## Releases
917
935
918
936
See [ Change Log] ( https://github.com/basemkhirat/elasticsearch/blob/master/CHANGELOG.md ) .
You can’t perform that action at this time.
0 commit comments