QueryInterface.php 686 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Search\Request;
  7. /**
  8. * Query Interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface QueryInterface
  14. {
  15. /**
  16. * #@+ Query Types
  17. */
  18. const TYPE_MATCH = 'matchQuery';
  19. const TYPE_BOOL = 'boolQuery';
  20. const TYPE_FILTER = 'filteredQuery';
  21. /**#@-*/
  22. /**
  23. * Get Type
  24. *
  25. * @return string
  26. */
  27. public function getType();
  28. /**
  29. * Get Name
  30. *
  31. * @return string
  32. */
  33. public function getName();
  34. /**
  35. * Get Boost
  36. *
  37. * @return int|null
  38. */
  39. public function getBoost();
  40. }