@@ -66,7 +66,7 @@ public static function dataQueryBuilder()
66
66
$ defaultPagination = PaginationStub::defaultPagination ();
67
67
$ defaultExpectedParams = [
68
68
'q.op ' => ResultsConfig::SEARCH_OPERATOR_AND ,
69
- 'fq ' => "store_id: $ defaultStoreId AND is_visible_in_search_i:1 " ,
69
+ 'fq ' => "content_type:product AND store_id:$ defaultStoreId AND is_visible_in_search_i:1 " ,
70
70
'fl ' => 'result_html_list_nonindex,result_html_grid_nonindex,score,sku_s,name_s,product_id ' ,
71
71
'sort ' => 'score desc ' ,
72
72
'facet ' => 'true ' ,
@@ -91,11 +91,19 @@ public static function dataQueryBuilder()
91
91
FilterQueryBuilder::noFilterQueryBuilder ($ defaultResultConfig ), $ defaultPagination , new SearchString ('foo bar ' ),
92
92
new Query ($ defaultStoreId , 'foo bar~0.7 ' , 0 , PaginationStub::DEFAULT_PAGESIZE , $ defaultExpectedParams )
93
93
],
94
+ 'default_spaces ' => [$ defaultStoreId , $ defaultResultConfig , FuzzyConfigBuilder::defaultConfig ()->build (),
95
+ FilterQueryBuilder::noFilterQueryBuilder ($ defaultResultConfig ), $ defaultPagination , new SearchString ('foo bar ' ),
96
+ new Query ($ defaultStoreId , 'foo bar~0.7 ' , 0 , PaginationStub::DEFAULT_PAGESIZE , $ defaultExpectedParams )
97
+ ],
98
+ 'default_numbers ' => [$ defaultStoreId , $ defaultResultConfig , FuzzyConfigBuilder::defaultConfig ()->build (),
99
+ FilterQueryBuilder::noFilterQueryBuilder ($ defaultResultConfig ), $ defaultPagination , new SearchString ('foo 1 bar 2 ' ),
100
+ new Query ($ defaultStoreId , 'foo1 bar2~0.7 ' , 0 , PaginationStub::DEFAULT_PAGESIZE , $ defaultExpectedParams )
101
+ ],
94
102
'alternative ' => [1 , ResultConfigBuilder::alternativeConfig ()->build (), FuzzyConfigBuilder::inactiveConfig ()->build (),
95
103
FilterQueryBuilder::noFilterQueryBuilder ($ defaultResultConfig ), PaginationStub::alternativePagination (), new SearchString ('"foo bar" ' ),
96
104
new Query (1 , 'attribute1_t:""foo bar""~100^0 OR attribute2_t:""foo bar""~100^0 OR category_name_t_mv:""foo bar""~100^1 ' , 0 , 24 , [
97
105
'q.op ' => ResultsConfig::SEARCH_OPERATOR_OR ,
98
- 'fq ' => "store_id:1 AND is_visible_in_search_i:1 " ,
106
+ 'fq ' => "content_type:product AND store_id:1 AND is_visible_in_search_i:1 " ,
99
107
'sort ' => 'attribute1_s desc ' ,
100
108
'f.price_f.facet.interval.set ' => [
101
109
"(0.000000,10.000000] " , "(10.000000,20.000000] " , "(20.000000,50.000000] " , "(50.000000,100.000000] " , "(100.000000,200.000000] " ,
@@ -111,7 +119,7 @@ public static function dataQueryBuilder()
111
119
->addPriceRangeFilterByMinMax (13 ,37 ),
112
120
$ defaultPagination , new SearchString ('foo bar ' ),
113
121
new Query ($ defaultStoreId , 'foo bar~0.7 ' , 0 , PaginationStub::DEFAULT_PAGESIZE , [
114
- 'fq ' => 'store_id:0 AND is_visible_in_search_i:1 AND attribute1_facet:blue AND category:42 AND price_f:[13.000000 TO 37.000000] '
122
+ 'fq ' => 'content_type:product AND store_id:0 AND is_visible_in_search_i:1 AND attribute1_facet:blue AND category:42 AND price_f:[13.000000 TO 37.000000] '
115
123
] + $ defaultExpectedParams )
116
124
]
117
125
];
0 commit comments