admin/jqadm/src/Admin/JQAdm/Common/Decorator/Index.php
public function save()
	{
		$result = $this->getClient()->save();
		$prodIds = array_unique( $this->getView()->param( 'product/catalog.lists.refid', [] ) );

		if( !empty( $prodIds ) )
		{
			$context = $this->getContext();
			$manager = \Aimeos\MShop::create( $context, 'product' );
			$domains = ['attribute', 'price', 'product', 'supplier', 'text'];

			$search = $manager->createSearch( true )->setSlice( count( $prodIds ) );
			$search->setConditions( $search->compare( '==', 'product.id', $prodIds ) );

			$items = $manager->searchItems( $search, $domains );
			\Aimeos\MShop::create( $context, 'index' )->rebuildIndex( $items );
		}

		return $result;
	}
public function save()
	{
		$result = $this->getClient()->save();
		$prodIds = array_unique( $this->getView()->param( 'product/catalog.lists.refid', [] ) );

		if( !empty( $prodIds ) )
		{
			$context = $this->getContext();
			$manager = \Aimeos\MShop::create( $context, 'product' );
			$domains = ['attribute', 'price', 'product', 'supplier', 'text'];

			$search = $manager->createSearch( true )->setSlice( count( $prodIds ) );
			$search->setConditions( $search->compare( '==', 'product.id', $prodIds ) );

			$items = $manager->searchItems( $search, $domains );
			\Aimeos\MShop::create( $context, 'index' )->rebuildIndex( $items );
		}

		return $result;
	}
public function save ( ) { $ result = $ this -> getClient ( ) -> save ( ) ; $ prodIds = array_unique ( $ this -> getView ( ) -> param ( 'product/catalog.lists.refid' , [ ] ) ) ; if ( ! empty ( $ prodIds ) ) { $ context = $ this -> getContext ( ) ; $ manager = \ Aimeos \ MShop :: create ( $ context , 'product' ) ; $ domains = [ 'attribute' , 'price' , 'product' , 'supplier' , 'text' ] ; $ search = $ manager -> createSearch ( true ) -> setSlice ( count ( $ prodIds ) ) ; $ search -> setConditions ( $ search -> compare ( '==' , 'product.id' , $ prodIds ) ) ; $ items = $ manager -> searchItems ( $ search , $ domains ) ; \ Aimeos \ MShop :: create ( $ context , 'index' ) -> rebuildIndex ( $ items ) ; } return $ result ; }
Rebuilds the index after saving the item

@return string|null admin output to display or null for redirecting to the list
Rebuilds the index after saving the item