<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="MAINT_remove_merged_gps_from_es:1" author="borisuvarov" run-on-change="true">
        <query>
            MATCH (gp1:GlobalParticipant)-[:MERGED_TO]->(gp2:GlobalParticipant)
            CALL streams.publish('stream.globalParticipant.elasticSearch.adhocDelete', {id: gp1.id})
            RETURN count(gp1)
        </query>
    </changeset>
</changelog>