Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Search
Request
Query
BoolExpression.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Search\Request\Query
;
7
8
use
Magento\Framework\Search\Request\QueryInterface
;
9
15
class
BoolExpression
implements
QueryInterface
16
{
17
const
QUERY_CONDITION_MUST
=
'must'
;
18
const
QUERY_CONDITION_SHOULD
=
'should'
;
19
const
QUERY_CONDITION_NOT
=
'not'
;
20
26
protected
$boost
;
27
33
protected
$name
;
34
40
protected
$should
= [];
41
47
protected
$must
= [];
48
54
protected
$mustNot
= [];
55
64
public
function
__construct
(
$name
,
$boost
, array
$must
= [], array
$should
= [], array $not = [])
65
{
66
$this->
name
=
$name
;
67
$this->boost =
$boost
;
68
$this->must =
$must
;
69
$this->should =
$should
;
70
$this->mustNot = $not;
71
}
72
76
public
function
getType
()
77
{
78
return
QueryInterface::TYPE_BOOL
;
79
}
80
85
public
function
getName
()
86
{
87
return
$this->name
;
88
}
89
93
public
function
getBoost
()
94
{
95
return
$this->boost
;
96
}
97
104
public
function
getShould
()
105
{
106
return
$this->should
;
107
}
108
115
public
function
getMust
()
116
{
117
return
$this->must
;
118
}
119
126
public
function
getMustNot
()
127
{
128
return
$this->mustNot
;
129
}
130
}
Magento\Framework\Search\Request\Query\BoolExpression\getName
getName()
Definition:
BoolExpression.php:85
Magento\Framework\Search\Request\Query\BoolExpression\$must
$must
Definition:
BoolExpression.php:47
Magento\Framework\Search\Request\Query\BoolExpression\getBoost
getBoost()
Definition:
BoolExpression.php:93
Magento\Framework\Search\Request\QueryInterface\TYPE_BOOL
const TYPE_BOOL
Definition:
QueryInterface.php:21
Magento\Framework\Search\Request\QueryInterface
Definition:
QueryInterface.php:14
Magento\Framework\Search\Request\Query\BoolExpression\$mustNot
$mustNot
Definition:
BoolExpression.php:54
Magento\Framework\Search\Request\Query\BoolExpression\$name
$name
Definition:
BoolExpression.php:33
Magento\Framework\Search\Request\Query\BoolExpression\getMust
getMust()
Definition:
BoolExpression.php:115
Magento\Framework\Search\Request\Query\BoolExpression\QUERY_CONDITION_MUST
const QUERY_CONDITION_MUST
Definition:
BoolExpression.php:17
Magento\Framework\Search\Request\Query\BoolExpression\$should
$should
Definition:
BoolExpression.php:40
Magento\Framework\Search\Request\Query
Definition:
BoolExpression.php:6
Magento\Framework\Search\Request\Query\BoolExpression\$boost
$boost
Definition:
BoolExpression.php:26
name
Magento\Framework\Search\Request\Query\BoolExpression\QUERY_CONDITION_SHOULD
const QUERY_CONDITION_SHOULD
Definition:
BoolExpression.php:18
Magento\Framework\Search\Request\Query\BoolExpression\getShould
getShould()
Definition:
BoolExpression.php:104
Magento\Framework\Search\Request\Query\BoolExpression\getMustNot
getMustNot()
Definition:
BoolExpression.php:126
Magento\Framework\Search\Request\Query\BoolExpression\QUERY_CONDITION_NOT
const QUERY_CONDITION_NOT
Definition:
BoolExpression.php:19
Magento\Framework\Search\Request\Query\BoolExpression\getType
getType()
Definition:
BoolExpression.php:76
Magento\Framework\Search\Request\Query\BoolExpression\__construct
__construct($name, $boost, array $must=[], array $should=[], array $not=[])
Definition:
BoolExpression.php:64
Magento\Framework\Search\Request\Query\BoolExpression
Definition:
BoolExpression.php:15