Excluding vertices from neptune stream poller(Connecting Neptune with OpenSearch)

0

When configuring the neptune stream poller, only PropertiesToExclude and DatatypesToExclude can be set. Is it impossible to exclude by vertex label (entity_type)?

已提问 1 年前250 查看次数
1 回答
1

Filtering by label is not directly exposed in the CloudFormation stack, but you could add this into the Stream Poller Lambda function code. If you look at the NeptuneStreamPollerLambda that the stack creates, there is a file at the path of ./neptune_to_es/neptune_es_gremlin_handler.py where the logic for filtering takes place. Within that file, there is a filter_records() method. You could add the logic there for additional label filters. I'll add this to our backlog to support this natively, but do not have a timeline as to when we'll be able to address this.

profile pictureAWS
已回答 1 年前
  • Thanks for your answer. I'll check filter records(). As a user, I hope the filtering by label will be added soon :)

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则