<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Store Locator Indexer for Magento 2 (System)
 */-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Mview/etc/mview.xsd">
    <view id="amasty_store_locator_product_indexer" class="Amasty\StorelocatorIndexer\Model\Indexer\Product\ProductLocatorIndexer" group="indexer">
        <subscriptions>
            <table name="catalog_product_entity" entity_column="entity_id"/>
            <table name="catalog_product_entity_datetime" entity_column="entity_id"/>
            <table name="catalog_product_entity_decimal" entity_column="entity_id"/>
            <table name="catalog_product_entity_gallery" entity_column="entity_id"/>
            <table name="catalog_product_entity_int" entity_column="entity_id"/>
            <table name="catalog_product_entity_media_gallery_value" entity_column="entity_id"/>
            <table name="catalog_product_entity_text" entity_column="entity_id"/>
            <table name="catalog_product_entity_tier_price" entity_column="entity_id"/>
            <table name="catalog_product_entity_varchar" entity_column="entity_id"/>
            <table name="catalog_category_product" entity_column="product_id"/>
        </subscriptions>
    </view>

    <view id="amasty_store_locator_indexer" class="Amasty\StorelocatorIndexer\Model\Indexer\Location\LocationIndexer" group="indexer">
        <subscriptions>
            <table name="amasty_amlocator_location" entity_column="id"/>
        </subscriptions>
    </view>

    <view id="amasty_store_locator_content_indexer" class="Amasty\StorelocatorIndexer\Model\Indexer\Content\ContentIndexer" group="indexer">
        <subscriptions>
            <table name="amasty_amlocator_location" entity_column="id"/>
        </subscriptions>
    </view>
</config>
