- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 203
 
Open
Description
pgsync 4.1.0
es 9.x.x
pgs 15
I was wondering if there is a way to delete entries using plugins
class ActivePlugin(plugin.Plugin):
    """Plugin to filter only active."""
    name = "Active"
    def transform(self, doc, **kwargs):
        """Filter out non-active listings."""
        # Return None to skip indexing this document
        if doc.get("status") != "ACTIVE" or doc.get("processing_state") != "SUCCESS":
            return None # So that this would not make it index the entry or delete it if it was indexed in ES
        return docbut when an item gets set to inactive it is not removed from the elasticsearch, how is this possible?
Metadata
Metadata
Assignees
Labels
No labels