Skip to content

Commit

Permalink
Couchdb river plugin - ignore design documents
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahendra M authored and kimchy committed Oct 5, 2010
1 parent 1f49eb0 commit a0d4848
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -179,6 +179,13 @@ private String processLine(String s, BulkRequestBuilder bulk) {
}
String seq = map.get("seq").toString();
String id = map.get("id").toString();

// Ignore design documents
if (id.startsWith("_design/")) {
logger.info("ignoring design document {}", id);
return seq;
}

if (map.containsKey("delete") && map.get("deleted").equals("true")) {
bulk.add(deleteRequest(indexName).type(typeName).id(id));
} else if (map.containsKey("doc")) {
Expand Down

0 comments on commit a0d4848

Please sign in to comment.