Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
search_request_config.php
Go to the documentation of this file.
1 <?php
6 return [
7  "suggested_search_container" => [
8  "dimensions" => [
9  "scope" => [
10  "name" => "scope",
11  "value" => "default",
12  ],
13  ],
14  "queries" => [
15  "suggested_search_container" => [
16  "name" => "suggested_search_container",
17  "boost" => "2",
18  "queryReference" => [
19  [
20  "clause" => "must",
21  "ref" => "fulltext_search_query",
22  ],
23  [
24  "clause" => "should",
25  "ref" => "fulltext_search_query2"
26  ],
27  ],
28  "type" => "boolQuery",
29  ],
30  "fulltext_search_query" => [
31  "name" => "fulltext_search_query",
32  "boost" => "5",
33  "value" => "default_value",
34  "match" => [
35  [
36  "field" => "title",
37  "boost" => "2",
38  ],
39  [
40  "field" => "description"
41  ],
42  ],
43  "type" => "matchQuery",
44  ],
45  "fulltext_search_query2" => [
46  "name" => "fulltext_search_query2",
47  "filterReference" => [
48  [
49  'clause' => 'must',
50  "ref" => "promoted",
51  ],
52  ],
53  "type" => "filteredQuery",
54  ],
55  ],
56  "filters" => [
57  "promoted" => [
58  "name" => "promoted",
59  "filterReference" => [
60  [
61  "clause" => "must",
62  "ref" => "price_name",
63  ],
64  [
65  "clause" => "should",
66  "ref" => "price_name1"
67  ],
68  ],
69  "type" => "boolFilter",
70  ],
71  "price_name" => [
72  "field" => "promoted_boost",
73  "name" => "price_name",
74  "from" => "10",
75  "to" => "100",
76  "type" => "rangeFilter",
77  ],
78  "price_name1" => [
79  "name" => "price_name1",
80  "field" => "price_name",
81  "value" => "\$name",
82  "type" => "termFilter",
83  ],
84  ],
85  "aggregations" => [
86  "category_bucket" => [
87  "name" => "category_bucket",
88  "field" => "category",
89  "metric" => [
90  [
91  "type" => "sum",
92  ],
93  [
94  "type" => "count",
95  ],
96  [
97  "type" => "min",
98  ],
99  [
100  "type" => "max",
101  ],
102  ],
103  "type" => "termBucket",
104  ],
105  "price_bucket" => [
106  "name" => "price_bucket",
107  "field" => "price",
108  "metric" => [
109  [
110  "type" => "sum",
111  ],
112  [
113  "type" => "count",
114  ],
115  [
116  "type" => "min",
117  ],
118  [
119  "type" => "max",
120  ],
121  ],
122  "range" => [
123  [
124  "from" => "",
125  "to" => "50",
126  ],
127  [
128  "from" => "50",
129  "to" => "100",
130  ],
131  [
132  "from" => "100",
133  "to" => "",
134  ],
135  ],
136  "type" => "rangeBucket",
137  ],
138  ],
139  "from" => "10",
140  "size" => "10",
141  "query" => "suggested_search_container",
142  "index" => "product",
143  ]
144 ];