Update TODO after a brief talk with couchDB team, attachment filter doesn't make sense on server side but only on client side. BTW, we may like to fully support attachments in ES couchDB river as by now only meta information are sent to Elastic Search
This commit is contained in:
parent
1f30681a84
commit
7420e99e7d
|
@ -254,7 +254,6 @@ public class CouchdbRiver extends AbstractRiverComponent implements River {
|
|||
}
|
||||
|
||||
// Remove _attachement from doc if needed
|
||||
// TODO : check if couchDB support now attachment filter : https://issues.apache.org/jira/browse/COUCHDB-1263
|
||||
if (couchIgnoreAttachements) {
|
||||
if (doc.containsKey("_attachments")) {
|
||||
Map<String, Object> _attachments = (Map<String, Object>) doc
|
||||
|
@ -266,6 +265,9 @@ public class CouchdbRiver extends AbstractRiverComponent implements River {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// TODO by now, couchDB river does not really store attachments in Elastic Search but only attachments meta informations
|
||||
// So we perhaps need to fully support attachments
|
||||
}
|
||||
|
||||
bulk.add(indexRequest(index).type(type).id(id).source(doc).routing(extractRouting(ctx)));
|
||||
|
@ -403,7 +405,6 @@ public class CouchdbRiver extends AbstractRiverComponent implements River {
|
|||
file = file + couchFilterParamsUrl;
|
||||
}
|
||||
}
|
||||
// TODO : check if couchDB support now attachment filter : https://issues.apache.org/jira/browse/COUCHDB-1263
|
||||
|
||||
if (lastSeq != null) {
|
||||
file = file + "&since=" + lastSeq;
|
||||
|
|
Loading…
Reference in New Issue