SuggestedQueriesInterface.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\AdvancedSearch\Model;
  7. use Magento\Search\Model\QueryInterface;
  8. /**
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface SuggestedQueriesInterface
  13. {
  14. /**#@+
  15. * Recommendations settings config paths
  16. */
  17. const SEARCH_RECOMMENDATIONS_ENABLED = 'catalog/search/search_recommendations_enabled';
  18. const SEARCH_RECOMMENDATIONS_COUNT_RESULTS_ENABLED = 'catalog/search/search_recommendations_count_results_enabled';
  19. const SEARCH_RECOMMENDATIONS_COUNT = 'catalog/search/search_recommendations_count';
  20. /**#@-*/
  21. /**#@+
  22. * Suggestions settings config paths
  23. */
  24. const SEARCH_SUGGESTION_COUNT = 'catalog/search/search_suggestion_count';
  25. const SEARCH_SUGGESTION_COUNT_RESULTS_ENABLED = 'catalog/search/search_suggestion_count_results_enabled';
  26. const SEARCH_SUGGESTION_ENABLED = 'catalog/search/search_suggestion_enabled';
  27. /**#@-*/
  28. /**
  29. * @param QueryInterface $query
  30. * @return \Magento\Search\Model\QueryResult[]
  31. */
  32. public function getItems(QueryInterface $query);
  33. /**
  34. * @return bool
  35. */
  36. public function isResultsCountEnabled();
  37. }