Skip to content

Commit

Permalink
CouchDB River: Deletes not handles correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Oct 14, 2010
1 parent eb44910 commit 81fd17b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private String processLine(String s, BulkRequestBuilder bulk) {
return seq;
}

if (map.containsKey("delete") && map.get("deleted").equals("true")) {
if (map.containsKey("deleted") && map.get("deleted").equals(Boolean.TRUE)) {
bulk.add(deleteRequest(indexName).type(typeName).id(id));
} else if (map.containsKey("doc")) {
Map<String, Object> doc = (Map<String, Object>) map.get("doc");
Expand Down

0 comments on commit 81fd17b

Please sign in to comment.