Skip to content

Commit

Permalink
Update README on usage of Delete action - searchbox-io#120
Browse files Browse the repository at this point in the history
  • Loading branch information
Cihat Keser committed May 9, 2014
1 parent ae6f9f8 commit 82bae75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ client.execute(new Update.Builder(script).index("twitter").type("tweet").id("1")
### Deleting Documents

```java
client.execute(new Delete.Builder("twitter", "tweet", "1").build());
client.execute(new Delete.Builder("1")
.index("twitter")
.type("tweet")
.build());
```

### Bulk Operations
Expand All @@ -326,7 +329,7 @@ Bulk bulk = new Bulk.Builder()
.defaultType("tweet")
.addAction(new Index.Builder(article1).build())
.addAction(new Index.Builder(article2).build())
.addAction(new Delete.Builder("twitter", "tweet", "1").build())
.addAction(new Delete.Builder("1").index("twitter").type("tweet").build())
.build();

client.execute(bulk);
Expand Down

0 comments on commit 82bae75

Please sign in to comment.