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 :)

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南