AggregationResolverInterface.php 584 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Search\Adapter\Aggregation;
  7. use Magento\Framework\Search\RequestInterface;
  8. /**
  9. * Interface \Magento\Framework\Search\Adapter\Aggregation\AggregationResolverInterface
  10. *
  11. */
  12. interface AggregationResolverInterface
  13. {
  14. /**
  15. * Filter aggregation from request
  16. *
  17. * @param RequestInterface $request
  18. * @param array $documentIds
  19. * @return array
  20. */
  21. public function resolve(RequestInterface $request, array $documentIds);
  22. }