public function afterSave(
        \Magento\Catalog\Api\Data\ProductAttributeInterface $subject,
        \Magento\Catalog\Api\Data\ProductAttributeInterface $result
    ) {
        $cleanCache = false;

        if ($subject->dataHasChangedFor('search_weight')) {
            $cleanCache = true;
        }

        if ($cleanCache) {
            $this->indicesConfig->reset();
        }

        return $result;
    }