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

asked a year ago241 views
1 Answer
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
answered a year ago
  • Thanks for your answer. I'll check filter records(). As a user, I hope the filtering by label will be added soon :)

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions