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

posta un anno fa250 visualizzazioni
1 Risposta
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
con risposta un anno fa
  • Thanks for your answer. I'll check filter records(). As a user, I hope the filtering by label will be added soon :)

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande