@salesforce/b2c-tooling-sdk 1.19.1 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (577) hide show
  1. package/data/help/index.json +9685 -0
  2. package/data/script-api/index.json +1 -528
  3. package/data/tooling/index.json +4 -4
  4. package/data/xsd/index.json +1 -1
  5. package/dist/esm/cli/base-command.js +5 -0
  6. package/dist/esm/cli/base-command.js.map +1 -1
  7. package/dist/esm/clients/index.d.ts +2 -0
  8. package/dist/esm/clients/index.js +1 -0
  9. package/dist/esm/clients/index.js.map +1 -1
  10. package/dist/esm/clients/middleware-registry.d.ts +1 -1
  11. package/dist/esm/clients/middleware-registry.js.map +1 -1
  12. package/dist/esm/clients/preferences.d.ts +83 -0
  13. package/dist/esm/clients/preferences.generated.d.ts +1651 -0
  14. package/dist/esm/clients/preferences.generated.js +6 -0
  15. package/dist/esm/clients/preferences.generated.js.map +1 -0
  16. package/dist/esm/clients/preferences.js +64 -0
  17. package/dist/esm/clients/preferences.js.map +1 -0
  18. package/dist/esm/config/dw-json.d.ts +2 -0
  19. package/dist/esm/config/dw-json.js.map +1 -1
  20. package/dist/esm/config/mapping.js +4 -0
  21. package/dist/esm/config/mapping.js.map +1 -1
  22. package/dist/esm/config/sources/dw-json-source.js +17 -4
  23. package/dist/esm/config/sources/dw-json-source.js.map +1 -1
  24. package/dist/esm/config/sources/env-source.js +2 -0
  25. package/dist/esm/config/sources/env-source.js.map +1 -1
  26. package/dist/esm/config/types.d.ts +14 -0
  27. package/dist/esm/docs/content-cache.d.ts +70 -0
  28. package/dist/esm/docs/content-cache.js +186 -0
  29. package/dist/esm/docs/content-cache.js.map +1 -0
  30. package/dist/esm/docs/index.d.ts +1 -0
  31. package/dist/esm/docs/index.js +2 -0
  32. package/dist/esm/docs/index.js.map +1 -1
  33. package/dist/esm/docs/search.js +34 -6
  34. package/dist/esm/docs/search.js.map +1 -1
  35. package/dist/esm/docs/types.d.ts +6 -1
  36. package/dist/esm/docs/types.js +1 -0
  37. package/dist/esm/docs/types.js.map +1 -1
  38. package/dist/esm/index.d.ts +2 -2
  39. package/dist/esm/index.js +1 -1
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/operations/jobs/discover.d.ts +46 -0
  42. package/dist/esm/operations/jobs/discover.js +87 -0
  43. package/dist/esm/operations/jobs/discover.js.map +1 -0
  44. package/dist/esm/operations/jobs/index.d.ts +2 -0
  45. package/dist/esm/operations/jobs/index.js +2 -0
  46. package/dist/esm/operations/jobs/index.js.map +1 -1
  47. package/dist/esm/operations/jobs/run.js +4 -3
  48. package/dist/esm/operations/jobs/run.js.map +1 -1
  49. package/package.json +5 -3
  50. package/specs/preferences-v1.yaml +2095 -0
  51. package/data/script-api/TopLevel.APIException.md +0 -119
  52. package/data/script-api/TopLevel.Array.md +0 -732
  53. package/data/script-api/TopLevel.ArrayBuffer.md +0 -97
  54. package/data/script-api/TopLevel.BigInt.md +0 -154
  55. package/data/script-api/TopLevel.Boolean.md +0 -83
  56. package/data/script-api/TopLevel.ConversionError.md +0 -51
  57. package/data/script-api/TopLevel.DataView.md +0 -271
  58. package/data/script-api/TopLevel.Date.md +0 -688
  59. package/data/script-api/TopLevel.ES6Iterator.md +0 -47
  60. package/data/script-api/TopLevel.Error.md +0 -124
  61. package/data/script-api/TopLevel.EvalError.md +0 -47
  62. package/data/script-api/TopLevel.Fault.md +0 -133
  63. package/data/script-api/TopLevel.Float32Array.md +0 -186
  64. package/data/script-api/TopLevel.Float64Array.md +0 -186
  65. package/data/script-api/TopLevel.Function.md +0 -114
  66. package/data/script-api/TopLevel.Generator.md +0 -132
  67. package/data/script-api/TopLevel.IOError.md +0 -98
  68. package/data/script-api/TopLevel.Int16Array.md +0 -186
  69. package/data/script-api/TopLevel.Int32Array.md +0 -186
  70. package/data/script-api/TopLevel.Int8Array.md +0 -186
  71. package/data/script-api/TopLevel.InternalError.md +0 -47
  72. package/data/script-api/TopLevel.Iterable.md +0 -44
  73. package/data/script-api/TopLevel.Iterator.md +0 -89
  74. package/data/script-api/TopLevel.JSON.md +0 -173
  75. package/data/script-api/TopLevel.Map.md +0 -189
  76. package/data/script-api/TopLevel.Math.md +0 -948
  77. package/data/script-api/TopLevel.Module.md +0 -152
  78. package/data/script-api/TopLevel.Namespace.md +0 -152
  79. package/data/script-api/TopLevel.Number.md +0 -404
  80. package/data/script-api/TopLevel.Object.md +0 -472
  81. package/data/script-api/TopLevel.QName.md +0 -147
  82. package/data/script-api/TopLevel.RangeError.md +0 -47
  83. package/data/script-api/TopLevel.ReferenceError.md +0 -47
  84. package/data/script-api/TopLevel.RegExp.md +0 -155
  85. package/data/script-api/TopLevel.Set.md +0 -150
  86. package/data/script-api/TopLevel.StopIteration.md +0 -36
  87. package/data/script-api/TopLevel.String.md +0 -1060
  88. package/data/script-api/TopLevel.Symbol.md +0 -196
  89. package/data/script-api/TopLevel.SyntaxError.md +0 -47
  90. package/data/script-api/TopLevel.SystemError.md +0 -99
  91. package/data/script-api/TopLevel.TypeError.md +0 -47
  92. package/data/script-api/TopLevel.URIError.md +0 -47
  93. package/data/script-api/TopLevel.Uint16Array.md +0 -186
  94. package/data/script-api/TopLevel.Uint32Array.md +0 -186
  95. package/data/script-api/TopLevel.Uint8Array.md +0 -186
  96. package/data/script-api/TopLevel.Uint8ClampedArray.md +0 -186
  97. package/data/script-api/TopLevel.WeakMap.md +0 -135
  98. package/data/script-api/TopLevel.WeakSet.md +0 -96
  99. package/data/script-api/TopLevel.XML.md +0 -922
  100. package/data/script-api/TopLevel.XMLList.md +0 -418
  101. package/data/script-api/TopLevel.XMLStreamError.md +0 -115
  102. package/data/script-api/TopLevel.arguments.md +0 -56
  103. package/data/script-api/TopLevel.global.md +0 -539
  104. package/data/script-api/TopLevel.md +0 -58
  105. package/data/script-api/dw.alert.Alert.md +0 -175
  106. package/data/script-api/dw.alert.Alerts.md +0 -256
  107. package/data/script-api/dw.alert.md +0 -7
  108. package/data/script-api/dw.campaign.ABTest.md +0 -63
  109. package/data/script-api/dw.campaign.ABTestMgr.md +0 -76
  110. package/data/script-api/dw.campaign.ABTestSegment.md +0 -107
  111. package/data/script-api/dw.campaign.AmountDiscount.md +0 -70
  112. package/data/script-api/dw.campaign.ApproachingDiscount.md +0 -157
  113. package/data/script-api/dw.campaign.BonusChoiceDiscount.md +0 -190
  114. package/data/script-api/dw.campaign.BonusDiscount.md +0 -59
  115. package/data/script-api/dw.campaign.Campaign.md +0 -346
  116. package/data/script-api/dw.campaign.CampaignMgr.md +0 -436
  117. package/data/script-api/dw.campaign.CampaignStatusCodes.md +0 -103
  118. package/data/script-api/dw.campaign.Coupon.md +0 -324
  119. package/data/script-api/dw.campaign.CouponMgr.md +0 -137
  120. package/data/script-api/dw.campaign.CouponRedemption.md +0 -87
  121. package/data/script-api/dw.campaign.CouponStatusCodes.md +0 -130
  122. package/data/script-api/dw.campaign.Discount.md +0 -271
  123. package/data/script-api/dw.campaign.DiscountPlan.md +0 -322
  124. package/data/script-api/dw.campaign.FixedPriceDiscount.md +0 -74
  125. package/data/script-api/dw.campaign.FixedPriceShippingDiscount.md +0 -74
  126. package/data/script-api/dw.campaign.FreeDiscount.md +0 -24
  127. package/data/script-api/dw.campaign.FreeShippingDiscount.md +0 -24
  128. package/data/script-api/dw.campaign.PercentageDiscount.md +0 -74
  129. package/data/script-api/dw.campaign.PercentageOptionDiscount.md +0 -59
  130. package/data/script-api/dw.campaign.PriceBookPriceDiscount.md +0 -56
  131. package/data/script-api/dw.campaign.Promotion.md +0 -939
  132. package/data/script-api/dw.campaign.PromotionMgr.md +0 -478
  133. package/data/script-api/dw.campaign.PromotionPlan.md +0 -378
  134. package/data/script-api/dw.campaign.SlotContent.md +0 -131
  135. package/data/script-api/dw.campaign.SourceCodeGroup.md +0 -83
  136. package/data/script-api/dw.campaign.SourceCodeInfo.md +0 -167
  137. package/data/script-api/dw.campaign.SourceCodeStatusCodes.md +0 -61
  138. package/data/script-api/dw.campaign.TotalFixedPriceDiscount.md +0 -56
  139. package/data/script-api/dw.campaign.md +0 -36
  140. package/data/script-api/dw.catalog.Catalog.md +0 -158
  141. package/data/script-api/dw.catalog.CatalogMgr.md +0 -161
  142. package/data/script-api/dw.catalog.Category.md +0 -1212
  143. package/data/script-api/dw.catalog.CategoryAssignment.md +0 -179
  144. package/data/script-api/dw.catalog.CategoryLink.md +0 -142
  145. package/data/script-api/dw.catalog.PriceBook.md +0 -215
  146. package/data/script-api/dw.catalog.PriceBookMgr.md +0 -176
  147. package/data/script-api/dw.catalog.Product.md +0 -2492
  148. package/data/script-api/dw.catalog.ProductActiveData.md +0 -1244
  149. package/data/script-api/dw.catalog.ProductAttributeModel.md +0 -409
  150. package/data/script-api/dw.catalog.ProductAvailabilityLevels.md +0 -125
  151. package/data/script-api/dw.catalog.ProductAvailabilityModel.md +0 -516
  152. package/data/script-api/dw.catalog.ProductInventoryList.md +0 -136
  153. package/data/script-api/dw.catalog.ProductInventoryMgr.md +0 -132
  154. package/data/script-api/dw.catalog.ProductInventoryRecord.md +0 -638
  155. package/data/script-api/dw.catalog.ProductLink.md +0 -166
  156. package/data/script-api/dw.catalog.ProductMgr.md +0 -136
  157. package/data/script-api/dw.catalog.ProductOption.md +0 -189
  158. package/data/script-api/dw.catalog.ProductOptionModel.md +0 -209
  159. package/data/script-api/dw.catalog.ProductOptionValue.md +0 -132
  160. package/data/script-api/dw.catalog.ProductPriceInfo.md +0 -170
  161. package/data/script-api/dw.catalog.ProductPriceModel.md +0 -988
  162. package/data/script-api/dw.catalog.ProductPriceTable.md +0 -121
  163. package/data/script-api/dw.catalog.ProductSearchHit.md +0 -702
  164. package/data/script-api/dw.catalog.ProductSearchModel.md +0 -1894
  165. package/data/script-api/dw.catalog.ProductSearchRefinementDefinition.md +0 -99
  166. package/data/script-api/dw.catalog.ProductSearchRefinementValue.md +0 -80
  167. package/data/script-api/dw.catalog.ProductSearchRefinements.md +0 -265
  168. package/data/script-api/dw.catalog.ProductVariationAttribute.md +0 -107
  169. package/data/script-api/dw.catalog.ProductVariationAttributeValue.md +0 -215
  170. package/data/script-api/dw.catalog.ProductVariationModel.md +0 -1010
  171. package/data/script-api/dw.catalog.Recommendation.md +0 -327
  172. package/data/script-api/dw.catalog.SearchModel.md +0 -769
  173. package/data/script-api/dw.catalog.SearchRefinementDefinition.md +0 -145
  174. package/data/script-api/dw.catalog.SearchRefinementValue.md +0 -194
  175. package/data/script-api/dw.catalog.SearchRefinements.md +0 -238
  176. package/data/script-api/dw.catalog.SortingOption.md +0 -120
  177. package/data/script-api/dw.catalog.SortingRule.md +0 -53
  178. package/data/script-api/dw.catalog.Store.md +0 -484
  179. package/data/script-api/dw.catalog.StoreGroup.md +0 -95
  180. package/data/script-api/dw.catalog.StoreInventoryFilter.md +0 -112
  181. package/data/script-api/dw.catalog.StoreInventoryFilterValue.md +0 -111
  182. package/data/script-api/dw.catalog.StoreMgr.md +0 -223
  183. package/data/script-api/dw.catalog.Variant.md +0 -1000
  184. package/data/script-api/dw.catalog.VariationGroup.md +0 -869
  185. package/data/script-api/dw.catalog.md +0 -50
  186. package/data/script-api/dw.content.Content.md +0 -481
  187. package/data/script-api/dw.content.ContentMgr.md +0 -147
  188. package/data/script-api/dw.content.ContentSearchModel.md +0 -618
  189. package/data/script-api/dw.content.ContentSearchRefinementDefinition.md +0 -61
  190. package/data/script-api/dw.content.ContentSearchRefinementValue.md +0 -22
  191. package/data/script-api/dw.content.ContentSearchRefinements.md +0 -218
  192. package/data/script-api/dw.content.Folder.md +0 -432
  193. package/data/script-api/dw.content.Library.md +0 -124
  194. package/data/script-api/dw.content.MarkupText.md +0 -150
  195. package/data/script-api/dw.content.MediaFile.md +0 -367
  196. package/data/script-api/dw.content.md +0 -15
  197. package/data/script-api/dw.crypto.CertificateRef.md +0 -59
  198. package/data/script-api/dw.crypto.CertificateUtils.md +0 -162
  199. package/data/script-api/dw.crypto.Cipher.md +0 -1234
  200. package/data/script-api/dw.crypto.Encoding.md +0 -193
  201. package/data/script-api/dw.crypto.JWE.md +0 -245
  202. package/data/script-api/dw.crypto.JWEHeader.md +0 -147
  203. package/data/script-api/dw.crypto.JWS.md +0 -260
  204. package/data/script-api/dw.crypto.JWSHeader.md +0 -128
  205. package/data/script-api/dw.crypto.KeyRef.md +0 -77
  206. package/data/script-api/dw.crypto.Mac.md +0 -191
  207. package/data/script-api/dw.crypto.MessageDigest.md +0 -243
  208. package/data/script-api/dw.crypto.SecureRandom.md +0 -161
  209. package/data/script-api/dw.crypto.Signature.md +0 -241
  210. package/data/script-api/dw.crypto.WeakCipher.md +0 -725
  211. package/data/script-api/dw.crypto.WeakMac.md +0 -163
  212. package/data/script-api/dw.crypto.WeakMessageDigest.md +0 -220
  213. package/data/script-api/dw.crypto.WeakSignature.md +0 -208
  214. package/data/script-api/dw.crypto.X509Certificate.md +0 -180
  215. package/data/script-api/dw.crypto.md +0 -23
  216. package/data/script-api/dw.customer.AddressBook.md +0 -158
  217. package/data/script-api/dw.customer.AgentUserMgr.md +0 -94
  218. package/data/script-api/dw.customer.AgentUserStatusCodes.md +0 -164
  219. package/data/script-api/dw.customer.AuthenticationStatus.md +0 -157
  220. package/data/script-api/dw.customer.Credentials.md +0 -524
  221. package/data/script-api/dw.customer.Customer.md +0 -488
  222. package/data/script-api/dw.customer.CustomerActiveData.md +0 -563
  223. package/data/script-api/dw.customer.CustomerAddress.md +0 -666
  224. package/data/script-api/dw.customer.CustomerCDPData.md +0 -70
  225. package/data/script-api/dw.customer.CustomerContextMgr.md +0 -62
  226. package/data/script-api/dw.customer.CustomerGroup.md +0 -146
  227. package/data/script-api/dw.customer.CustomerList.md +0 -76
  228. package/data/script-api/dw.customer.CustomerMgr.md +0 -1046
  229. package/data/script-api/dw.customer.CustomerPasswordConstraints.md +0 -125
  230. package/data/script-api/dw.customer.CustomerPaymentInstrument.md +0 -161
  231. package/data/script-api/dw.customer.CustomerStatusCodes.md +0 -55
  232. package/data/script-api/dw.customer.EncryptedObject.md +0 -34
  233. package/data/script-api/dw.customer.ExternalProfile.md +0 -154
  234. package/data/script-api/dw.customer.OrderHistory.md +0 -167
  235. package/data/script-api/dw.customer.ProductList.md +0 -870
  236. package/data/script-api/dw.customer.ProductListItem.md +0 -469
  237. package/data/script-api/dw.customer.ProductListItemPurchase.md +0 -139
  238. package/data/script-api/dw.customer.ProductListMgr.md +0 -350
  239. package/data/script-api/dw.customer.ProductListRegistrant.md +0 -165
  240. package/data/script-api/dw.customer.Profile.md +0 -940
  241. package/data/script-api/dw.customer.Wallet.md +0 -136
  242. package/data/script-api/dw.customer.consent.ConsentStatusEntry.md +0 -92
  243. package/data/script-api/dw.customer.consent.MarketingConsentSubscription.md +0 -247
  244. package/data/script-api/dw.customer.consent.ShopperConsentErrorCodes.md +0 -74
  245. package/data/script-api/dw.customer.consent.ShopperConsentException.md +0 -63
  246. package/data/script-api/dw.customer.consent.ShopperConsentMgr.md +0 -152
  247. package/data/script-api/dw.customer.consent.md +0 -10
  248. package/data/script-api/dw.customer.md +0 -31
  249. package/data/script-api/dw.customer.oauth.OAuthAccessTokenResponse.md +0 -171
  250. package/data/script-api/dw.customer.oauth.OAuthFinalizedResponse.md +0 -75
  251. package/data/script-api/dw.customer.oauth.OAuthLoginFlowMgr.md +0 -165
  252. package/data/script-api/dw.customer.oauth.OAuthUserInfoResponse.md +0 -84
  253. package/data/script-api/dw.customer.oauth.md +0 -9
  254. package/data/script-api/dw.customer.shoppercontext.ShopperContext.md +0 -369
  255. package/data/script-api/dw.customer.shoppercontext.ShopperContextErrorCodes.md +0 -111
  256. package/data/script-api/dw.customer.shoppercontext.ShopperContextException.md +0 -77
  257. package/data/script-api/dw.customer.shoppercontext.ShopperContextMgr.md +0 -209
  258. package/data/script-api/dw.customer.shoppercontext.md +0 -9
  259. package/data/script-api/dw.experience.AspectAttributeValidationException.md +0 -25
  260. package/data/script-api/dw.experience.Component.md +0 -166
  261. package/data/script-api/dw.experience.ComponentRenderSettings.md +0 -130
  262. package/data/script-api/dw.experience.ComponentScriptContext.md +0 -148
  263. package/data/script-api/dw.experience.CustomEditor.md +0 -146
  264. package/data/script-api/dw.experience.CustomEditorResources.md +0 -100
  265. package/data/script-api/dw.experience.Page.md +0 -467
  266. package/data/script-api/dw.experience.PageMgr.md +0 -549
  267. package/data/script-api/dw.experience.PageScriptContext.md +0 -200
  268. package/data/script-api/dw.experience.Region.md +0 -119
  269. package/data/script-api/dw.experience.RegionRenderSettings.md +0 -207
  270. package/data/script-api/dw.experience.cms.CMSRecord.md +0 -125
  271. package/data/script-api/dw.experience.cms.md +0 -6
  272. package/data/script-api/dw.experience.image.FocalPoint.md +0 -71
  273. package/data/script-api/dw.experience.image.Image.md +0 -101
  274. package/data/script-api/dw.experience.image.ImageMetaData.md +0 -71
  275. package/data/script-api/dw.experience.image.md +0 -8
  276. package/data/script-api/dw.experience.md +0 -16
  277. package/data/script-api/dw.extensions.applepay.ApplePayHookResult.md +0 -254
  278. package/data/script-api/dw.extensions.applepay.ApplePayHooks.md +0 -572
  279. package/data/script-api/dw.extensions.applepay.md +0 -7
  280. package/data/script-api/dw.extensions.facebook.FacebookFeedHooks.md +0 -102
  281. package/data/script-api/dw.extensions.facebook.FacebookProduct.md +0 -1343
  282. package/data/script-api/dw.extensions.facebook.md +0 -7
  283. package/data/script-api/dw.extensions.paymentapi.PaymentApiHooks.md +0 -136
  284. package/data/script-api/dw.extensions.paymentapi.md +0 -6
  285. package/data/script-api/dw.extensions.paymentrequest.PaymentRequestHookResult.md +0 -149
  286. package/data/script-api/dw.extensions.paymentrequest.PaymentRequestHooks.md +0 -356
  287. package/data/script-api/dw.extensions.paymentrequest.md +0 -7
  288. package/data/script-api/dw.extensions.payments.SalesforceAdyenPaymentIntent.md +0 -134
  289. package/data/script-api/dw.extensions.payments.SalesforceAdyenSavedPaymentMethod.md +0 -283
  290. package/data/script-api/dw.extensions.payments.SalesforceBancontactPaymentDetails.md +0 -88
  291. package/data/script-api/dw.extensions.payments.SalesforceCardPaymentDetails.md +0 -107
  292. package/data/script-api/dw.extensions.payments.SalesforceEpsPaymentDetails.md +0 -63
  293. package/data/script-api/dw.extensions.payments.SalesforceIdealPaymentDetails.md +0 -63
  294. package/data/script-api/dw.extensions.payments.SalesforceKlarnaPaymentDetails.md +0 -63
  295. package/data/script-api/dw.extensions.payments.SalesforcePayPalOrder.md +0 -263
  296. package/data/script-api/dw.extensions.payments.SalesforcePayPalOrderAddress.md +0 -171
  297. package/data/script-api/dw.extensions.payments.SalesforcePayPalOrderPayer.md +0 -110
  298. package/data/script-api/dw.extensions.payments.SalesforcePayPalPaymentDetails.md +0 -88
  299. package/data/script-api/dw.extensions.payments.SalesforcePaymentDetails.md +0 -83
  300. package/data/script-api/dw.extensions.payments.SalesforcePaymentIntent.md +0 -273
  301. package/data/script-api/dw.extensions.payments.SalesforcePaymentMethod.md +0 -368
  302. package/data/script-api/dw.extensions.payments.SalesforcePaymentRequest.md +0 -1077
  303. package/data/script-api/dw.extensions.payments.SalesforcePaymentsHooks.md +0 -190
  304. package/data/script-api/dw.extensions.payments.SalesforcePaymentsMerchantAccount.md +0 -151
  305. package/data/script-api/dw.extensions.payments.SalesforcePaymentsMerchantAccountPaymentMethod.md +0 -98
  306. package/data/script-api/dw.extensions.payments.SalesforcePaymentsMgr.md +0 -989
  307. package/data/script-api/dw.extensions.payments.SalesforcePaymentsSiteConfiguration.md +0 -202
  308. package/data/script-api/dw.extensions.payments.SalesforcePaymentsZone.md +0 -393
  309. package/data/script-api/dw.extensions.payments.SalesforceSepaDebitPaymentDetails.md +0 -63
  310. package/data/script-api/dw.extensions.payments.SalesforceVenmoPaymentDetails.md +0 -88
  311. package/data/script-api/dw.extensions.payments.md +0 -28
  312. package/data/script-api/dw.extensions.pinterest.PinterestAvailability.md +0 -85
  313. package/data/script-api/dw.extensions.pinterest.PinterestFeedHooks.md +0 -118
  314. package/data/script-api/dw.extensions.pinterest.PinterestOrder.md +0 -263
  315. package/data/script-api/dw.extensions.pinterest.PinterestOrderHooks.md +0 -89
  316. package/data/script-api/dw.extensions.pinterest.PinterestProduct.md +0 -677
  317. package/data/script-api/dw.extensions.pinterest.md +0 -10
  318. package/data/script-api/dw.io.CSVStreamReader.md +0 -128
  319. package/data/script-api/dw.io.CSVStreamWriter.md +0 -92
  320. package/data/script-api/dw.io.File.md +0 -729
  321. package/data/script-api/dw.io.FileReader.md +0 -70
  322. package/data/script-api/dw.io.FileWriter.md +0 -159
  323. package/data/script-api/dw.io.InputStream.md +0 -35
  324. package/data/script-api/dw.io.OutputStream.md +0 -38
  325. package/data/script-api/dw.io.PrintWriter.md +0 -66
  326. package/data/script-api/dw.io.RandomAccessFileReader.md +0 -183
  327. package/data/script-api/dw.io.Reader.md +0 -284
  328. package/data/script-api/dw.io.StringWriter.md +0 -89
  329. package/data/script-api/dw.io.Writer.md +0 -96
  330. package/data/script-api/dw.io.XMLIndentingStreamWriter.md +0 -121
  331. package/data/script-api/dw.io.XMLStreamConstants.md +0 -172
  332. package/data/script-api/dw.io.XMLStreamReader.md +0 -1181
  333. package/data/script-api/dw.io.XMLStreamWriter.md +0 -478
  334. package/data/script-api/dw.io.md +0 -21
  335. package/data/script-api/dw.job.JobExecution.md +0 -111
  336. package/data/script-api/dw.job.JobStepExecution.md +0 -136
  337. package/data/script-api/dw.job.md +0 -7
  338. package/data/script-api/dw.net.FTPClient.md +0 -621
  339. package/data/script-api/dw.net.FTPFileInfo.md +0 -132
  340. package/data/script-api/dw.net.HTTPClient.md +0 -775
  341. package/data/script-api/dw.net.HTTPClientLoggingConfig.md +0 -363
  342. package/data/script-api/dw.net.HTTPRequestPart.md +0 -296
  343. package/data/script-api/dw.net.Mail.md +0 -487
  344. package/data/script-api/dw.net.SFTPClient.md +0 -535
  345. package/data/script-api/dw.net.SFTPFileInfo.md +0 -128
  346. package/data/script-api/dw.net.WebDAVClient.md +0 -762
  347. package/data/script-api/dw.net.WebDAVFileInfo.md +0 -163
  348. package/data/script-api/dw.net.md +0 -15
  349. package/data/script-api/dw.object.ActiveData.md +0 -86
  350. package/data/script-api/dw.object.CustomAttributes.md +0 -165
  351. package/data/script-api/dw.object.CustomObject.md +0 -82
  352. package/data/script-api/dw.object.CustomObjectMgr.md +0 -478
  353. package/data/script-api/dw.object.Extensible.md +0 -71
  354. package/data/script-api/dw.object.ExtensibleObject.md +0 -85
  355. package/data/script-api/dw.object.Note.md +0 -118
  356. package/data/script-api/dw.object.ObjectAttributeDefinition.md +0 -542
  357. package/data/script-api/dw.object.ObjectAttributeGroup.md +0 -160
  358. package/data/script-api/dw.object.ObjectAttributeValueDefinition.md +0 -78
  359. package/data/script-api/dw.object.ObjectTypeDefinition.md +0 -239
  360. package/data/script-api/dw.object.PersistentObject.md +0 -92
  361. package/data/script-api/dw.object.SimpleExtensible.md +0 -53
  362. package/data/script-api/dw.object.SystemObjectMgr.md +0 -520
  363. package/data/script-api/dw.object.md +0 -19
  364. package/data/script-api/dw.order.AbstractItem.md +0 -220
  365. package/data/script-api/dw.order.AbstractItemCtnr.md +0 -219
  366. package/data/script-api/dw.order.Appeasement.md +0 -398
  367. package/data/script-api/dw.order.AppeasementItem.md +0 -104
  368. package/data/script-api/dw.order.Basket.md +0 -868
  369. package/data/script-api/dw.order.BasketMgr.md +0 -673
  370. package/data/script-api/dw.order.BonusDiscountLineItem.md +0 -309
  371. package/data/script-api/dw.order.CouponLineItem.md +0 -289
  372. package/data/script-api/dw.order.CreateAgentBasketLimitExceededException.md +0 -35
  373. package/data/script-api/dw.order.CreateBasketFromOrderException.md +0 -54
  374. package/data/script-api/dw.order.CreateCouponLineItemException.md +0 -67
  375. package/data/script-api/dw.order.CreateOrderException.md +0 -23
  376. package/data/script-api/dw.order.CreateTemporaryBasketLimitExceededException.md +0 -35
  377. package/data/script-api/dw.order.GiftCertificate.md +0 -530
  378. package/data/script-api/dw.order.GiftCertificateLineItem.md +0 -292
  379. package/data/script-api/dw.order.GiftCertificateMgr.md +0 -228
  380. package/data/script-api/dw.order.GiftCertificateStatusCodes.md +0 -108
  381. package/data/script-api/dw.order.Invoice.md +0 -571
  382. package/data/script-api/dw.order.InvoiceItem.md +0 -199
  383. package/data/script-api/dw.order.LineItem.md +0 -577
  384. package/data/script-api/dw.order.LineItemCtnr.md +0 -2429
  385. package/data/script-api/dw.order.LineItemTax.md +0 -142
  386. package/data/script-api/dw.order.Order.md +0 -2770
  387. package/data/script-api/dw.order.OrderAddress.md +0 -624
  388. package/data/script-api/dw.order.OrderItem.md +0 -613
  389. package/data/script-api/dw.order.OrderMgr.md +0 -1502
  390. package/data/script-api/dw.order.OrderPaymentInstrument.md +0 -231
  391. package/data/script-api/dw.order.OrderProcessStatusCodes.md +0 -146
  392. package/data/script-api/dw.order.PaymentCard.md +0 -220
  393. package/data/script-api/dw.order.PaymentInstrument.md +0 -1416
  394. package/data/script-api/dw.order.PaymentMethod.md +0 -257
  395. package/data/script-api/dw.order.PaymentMgr.md +0 -138
  396. package/data/script-api/dw.order.PaymentProcessor.md +0 -106
  397. package/data/script-api/dw.order.PaymentStatusCodes.md +0 -70
  398. package/data/script-api/dw.order.PaymentTransaction.md +0 -291
  399. package/data/script-api/dw.order.PriceAdjustment.md +0 -745
  400. package/data/script-api/dw.order.PriceAdjustmentLimitTypes.md +0 -61
  401. package/data/script-api/dw.order.ProductLineItem.md +0 -1749
  402. package/data/script-api/dw.order.ProductShippingCost.md +0 -101
  403. package/data/script-api/dw.order.ProductShippingLineItem.md +0 -336
  404. package/data/script-api/dw.order.ProductShippingModel.md +0 -143
  405. package/data/script-api/dw.order.Return.md +0 -396
  406. package/data/script-api/dw.order.ReturnCase.md +0 -463
  407. package/data/script-api/dw.order.ReturnCaseItem.md +0 -372
  408. package/data/script-api/dw.order.ReturnItem.md +0 -335
  409. package/data/script-api/dw.order.Shipment.md +0 -1132
  410. package/data/script-api/dw.order.ShipmentShippingCost.md +0 -54
  411. package/data/script-api/dw.order.ShipmentShippingModel.md +0 -203
  412. package/data/script-api/dw.order.ShippingLineItem.md +0 -315
  413. package/data/script-api/dw.order.ShippingLocation.md +0 -313
  414. package/data/script-api/dw.order.ShippingMethod.md +0 -251
  415. package/data/script-api/dw.order.ShippingMgr.md +0 -173
  416. package/data/script-api/dw.order.ShippingOrder.md +0 -630
  417. package/data/script-api/dw.order.ShippingOrderItem.md +0 -425
  418. package/data/script-api/dw.order.SumItem.md +0 -158
  419. package/data/script-api/dw.order.TaxGroup.md +0 -128
  420. package/data/script-api/dw.order.TaxItem.md +0 -74
  421. package/data/script-api/dw.order.TaxMgr.md +0 -314
  422. package/data/script-api/dw.order.TrackingInfo.md +0 -261
  423. package/data/script-api/dw.order.TrackingRef.md +0 -108
  424. package/data/script-api/dw.order.hooks.BasketMergeHooks.md +0 -87
  425. package/data/script-api/dw.order.hooks.CalculateHooks.md +0 -139
  426. package/data/script-api/dw.order.hooks.CheckoutHooks.md +0 -88
  427. package/data/script-api/dw.order.hooks.OrderHooks.md +0 -96
  428. package/data/script-api/dw.order.hooks.PaymentHooks.md +0 -325
  429. package/data/script-api/dw.order.hooks.ReturnHooks.md +0 -395
  430. package/data/script-api/dw.order.hooks.ShippingOrderHooks.md +0 -426
  431. package/data/script-api/dw.order.hooks.TaxHooks.md +0 -495
  432. package/data/script-api/dw.order.hooks.md +0 -13
  433. package/data/script-api/dw.order.md +0 -65
  434. package/data/script-api/dw.rpc.SOAPUtil.md +0 -736
  435. package/data/script-api/dw.rpc.Stub.md +0 -373
  436. package/data/script-api/dw.rpc.WebReference.md +0 -133
  437. package/data/script-api/dw.rpc.md +0 -8
  438. package/data/script-api/dw.sitemap.SitemapFile.md +0 -137
  439. package/data/script-api/dw.sitemap.SitemapMgr.md +0 -165
  440. package/data/script-api/dw.sitemap.md +0 -7
  441. package/data/script-api/dw.suggest.BrandSuggestions.md +0 -34
  442. package/data/script-api/dw.suggest.CategorySuggestions.md +0 -76
  443. package/data/script-api/dw.suggest.ContentSuggestions.md +0 -76
  444. package/data/script-api/dw.suggest.CustomSuggestions.md +0 -34
  445. package/data/script-api/dw.suggest.ProductSuggestions.md +0 -76
  446. package/data/script-api/dw.suggest.SearchPhraseSuggestions.md +0 -126
  447. package/data/script-api/dw.suggest.SuggestModel.md +0 -471
  448. package/data/script-api/dw.suggest.SuggestedCategory.md +0 -51
  449. package/data/script-api/dw.suggest.SuggestedContent.md +0 -51
  450. package/data/script-api/dw.suggest.SuggestedPhrase.md +0 -70
  451. package/data/script-api/dw.suggest.SuggestedProduct.md +0 -55
  452. package/data/script-api/dw.suggest.SuggestedTerm.md +0 -143
  453. package/data/script-api/dw.suggest.SuggestedTerms.md +0 -144
  454. package/data/script-api/dw.suggest.Suggestions.md +0 -206
  455. package/data/script-api/dw.suggest.md +0 -19
  456. package/data/script-api/dw.svc.FTPService.md +0 -140
  457. package/data/script-api/dw.svc.FTPServiceDefinition.md +0 -97
  458. package/data/script-api/dw.svc.HTTPFormService.md +0 -32
  459. package/data/script-api/dw.svc.HTTPFormServiceDefinition.md +0 -36
  460. package/data/script-api/dw.svc.HTTPService.md +0 -370
  461. package/data/script-api/dw.svc.HTTPServiceDefinition.md +0 -290
  462. package/data/script-api/dw.svc.LocalServiceRegistry.md +0 -63
  463. package/data/script-api/dw.svc.Result.md +0 -320
  464. package/data/script-api/dw.svc.SOAPService.md +0 -104
  465. package/data/script-api/dw.svc.SOAPServiceDefinition.md +0 -32
  466. package/data/script-api/dw.svc.Service.md +0 -276
  467. package/data/script-api/dw.svc.ServiceCallback.md +0 -282
  468. package/data/script-api/dw.svc.ServiceConfig.md +0 -114
  469. package/data/script-api/dw.svc.ServiceCredential.md +0 -162
  470. package/data/script-api/dw.svc.ServiceDefinition.md +0 -211
  471. package/data/script-api/dw.svc.ServiceProfile.md +0 -152
  472. package/data/script-api/dw.svc.ServiceRegistry.md +0 -118
  473. package/data/script-api/dw.svc.md +0 -22
  474. package/data/script-api/dw.system.AgentUserStatusCodes.md +0 -41
  475. package/data/script-api/dw.system.Cache.md +0 -126
  476. package/data/script-api/dw.system.CacheMgr.md +0 -70
  477. package/data/script-api/dw.system.HookMgr.md +0 -78
  478. package/data/script-api/dw.system.InternalObject.md +0 -47
  479. package/data/script-api/dw.system.JobProcessMonitor.md +0 -103
  480. package/data/script-api/dw.system.Log.md +0 -198
  481. package/data/script-api/dw.system.LogNDC.md +0 -75
  482. package/data/script-api/dw.system.Logger.md +0 -216
  483. package/data/script-api/dw.system.OrganizationPreferences.md +0 -53
  484. package/data/script-api/dw.system.Pipeline.md +0 -94
  485. package/data/script-api/dw.system.PipelineDictionary.md +0 -42
  486. package/data/script-api/dw.system.RESTErrorResponse.md +0 -102
  487. package/data/script-api/dw.system.RESTResponseMgr.md +0 -243
  488. package/data/script-api/dw.system.RESTSuccessResponse.md +0 -62
  489. package/data/script-api/dw.system.RemoteInclude.md +0 -146
  490. package/data/script-api/dw.system.Request.md +0 -785
  491. package/data/script-api/dw.system.RequestHooks.md +0 -112
  492. package/data/script-api/dw.system.Response.md +0 -612
  493. package/data/script-api/dw.system.SearchStatus.md +0 -187
  494. package/data/script-api/dw.system.Session.md +0 -469
  495. package/data/script-api/dw.system.Site.md +0 -570
  496. package/data/script-api/dw.system.SitePreferences.md +0 -90
  497. package/data/script-api/dw.system.Status.md +0 -330
  498. package/data/script-api/dw.system.StatusItem.md +0 -273
  499. package/data/script-api/dw.system.System.md +0 -224
  500. package/data/script-api/dw.system.Transaction.md +0 -107
  501. package/data/script-api/dw.system.md +0 -32
  502. package/data/script-api/dw.template.ISML.md +0 -127
  503. package/data/script-api/dw.template.Velocity.md +0 -168
  504. package/data/script-api/dw.template.md +0 -7
  505. package/data/script-api/dw.util.ArrayList.md +0 -99
  506. package/data/script-api/dw.util.Assert.md +0 -370
  507. package/data/script-api/dw.util.BigInteger.md +0 -283
  508. package/data/script-api/dw.util.Bytes.md +0 -278
  509. package/data/script-api/dw.util.Calendar.md +0 -1051
  510. package/data/script-api/dw.util.Collection.md +0 -272
  511. package/data/script-api/dw.util.Currency.md +0 -147
  512. package/data/script-api/dw.util.DateUtils.md +0 -82
  513. package/data/script-api/dw.util.Decimal.md +0 -386
  514. package/data/script-api/dw.util.FilteringCollection.md +0 -140
  515. package/data/script-api/dw.util.Geolocation.md +0 -293
  516. package/data/script-api/dw.util.HashMap.md +0 -50
  517. package/data/script-api/dw.util.HashSet.md +0 -65
  518. package/data/script-api/dw.util.Iterator.md +0 -86
  519. package/data/script-api/dw.util.LinkedHashMap.md +0 -52
  520. package/data/script-api/dw.util.LinkedHashSet.md +0 -68
  521. package/data/script-api/dw.util.List.md +0 -429
  522. package/data/script-api/dw.util.Locale.md +0 -277
  523. package/data/script-api/dw.util.Map.md +0 -251
  524. package/data/script-api/dw.util.MapEntry.md +0 -68
  525. package/data/script-api/dw.util.MappingKey.md +0 -96
  526. package/data/script-api/dw.util.MappingMgr.md +0 -113
  527. package/data/script-api/dw.util.PropertyComparator.md +0 -122
  528. package/data/script-api/dw.util.SecureEncoder.md +0 -582
  529. package/data/script-api/dw.util.SecureFilter.md +0 -572
  530. package/data/script-api/dw.util.SeekableIterator.md +0 -187
  531. package/data/script-api/dw.util.Set.md +0 -39
  532. package/data/script-api/dw.util.SortedMap.md +0 -148
  533. package/data/script-api/dw.util.SortedSet.md +0 -173
  534. package/data/script-api/dw.util.StringUtils.md +0 -655
  535. package/data/script-api/dw.util.Template.md +0 -141
  536. package/data/script-api/dw.util.UUIDUtils.md +0 -34
  537. package/data/script-api/dw.util.md +0 -37
  538. package/data/script-api/dw.value.EnumValue.md +0 -105
  539. package/data/script-api/dw.value.MimeEncodedText.md +0 -131
  540. package/data/script-api/dw.value.Money.md +0 -526
  541. package/data/script-api/dw.value.Quantity.md +0 -299
  542. package/data/script-api/dw.value.md +0 -9
  543. package/data/script-api/dw.web.CSRFProtection.md +0 -105
  544. package/data/script-api/dw.web.ClickStream.md +0 -177
  545. package/data/script-api/dw.web.ClickStreamEntry.md +0 -255
  546. package/data/script-api/dw.web.Cookie.md +0 -431
  547. package/data/script-api/dw.web.Cookies.md +0 -59
  548. package/data/script-api/dw.web.Form.md +0 -84
  549. package/data/script-api/dw.web.FormAction.md +0 -195
  550. package/data/script-api/dw.web.FormElement.md +0 -211
  551. package/data/script-api/dw.web.FormElementValidationResult.md +0 -170
  552. package/data/script-api/dw.web.FormField.md +0 -642
  553. package/data/script-api/dw.web.FormFieldOption.md +0 -211
  554. package/data/script-api/dw.web.FormFieldOptions.md +0 -49
  555. package/data/script-api/dw.web.FormGroup.md +0 -222
  556. package/data/script-api/dw.web.FormList.md +0 -134
  557. package/data/script-api/dw.web.FormListItem.md +0 -57
  558. package/data/script-api/dw.web.Forms.md +0 -25
  559. package/data/script-api/dw.web.HttpParameter.md +0 -462
  560. package/data/script-api/dw.web.HttpParameterMap.md +0 -194
  561. package/data/script-api/dw.web.LoopIterator.md +0 -231
  562. package/data/script-api/dw.web.PageMetaData.md +0 -197
  563. package/data/script-api/dw.web.PageMetaTag.md +0 -173
  564. package/data/script-api/dw.web.PagingModel.md +0 -407
  565. package/data/script-api/dw.web.Resource.md +0 -147
  566. package/data/script-api/dw.web.URL.md +0 -174
  567. package/data/script-api/dw.web.URLAction.md +0 -95
  568. package/data/script-api/dw.web.URLParameter.md +0 -52
  569. package/data/script-api/dw.web.URLRedirect.md +0 -72
  570. package/data/script-api/dw.web.URLRedirectMgr.md +0 -86
  571. package/data/script-api/dw.web.URLUtils.md +0 -1357
  572. package/data/script-api/dw.web.md +0 -34
  573. package/data/script-api/dw.ws.Port.md +0 -126
  574. package/data/script-api/dw.ws.WSUtil.md +0 -728
  575. package/data/script-api/dw.ws.WebReference2.md +0 -137
  576. package/data/script-api/dw.ws.md +0 -8
  577. package/data/script-api/index.md +0 -40
@@ -1,1894 +0,0 @@
1
- <!-- prettier-ignore-start -->
2
- # Class ProductSearchModel
3
-
4
- - [TopLevel.Object](TopLevel.Object.md)
5
- - [dw.catalog.SearchModel](dw.catalog.SearchModel.md)
6
- - [dw.catalog.ProductSearchModel](dw.catalog.ProductSearchModel.md)
7
-
8
- The class is the central interface to a product search result and a product
9
- search refinement. It also provides utility methods to generate a search URL.
10
-
11
-
12
-
13
- ## Constant Summary
14
-
15
- | Constant | Description |
16
- | --- | --- |
17
- | [CATEGORYID_PARAMETER](#categoryid_parameter): [String](TopLevel.String.md) = "cgid" | URL Parameter for the category ID |
18
- | [INVENTORY_LIST_IDS_PARAMETER](#inventory_list_ids_parameter): [String](TopLevel.String.md) = "ilids" | URL Parameter for the inventory list IDs |
19
- | [MAXIMUM_INVENTORY_LIST_IDS](#maximum_inventory_list_ids): [Number](TopLevel.Number.md) = 10 | The maximum number of inventory list IDs that can be passed to [setInventoryListIDs(List)](dw.catalog.ProductSearchModel.md#setinventorylistidslist) |
20
- | [MAXIMUM_PRODUCT_IDS](#maximum_product_ids): [Number](TopLevel.Number.md) = 30 | The maximum number of product IDs that can be passed to [setProductIDs(List)](dw.catalog.ProductSearchModel.md#setproductidslist) |
21
- | [MAXIMUM_STORE_INVENTORY_FILTER_VALUES](#maximum_store_inventory_filter_values): [Number](TopLevel.Number.md) = 10 | The maximum number of store inventory values for a store inventory filter that can be passed to [setStoreInventoryFilter(StoreInventoryFilter)](dw.catalog.ProductSearchModel.md#setstoreinventoryfilterstoreinventoryfilter) |
22
- | [PRICE_MAX_PARAMETER](#price_max_parameter): [String](TopLevel.String.md) = "pmax" | URL Parameter for the maximum price |
23
- | [PRICE_MIN_PARAMETER](#price_min_parameter): [String](TopLevel.String.md) = "pmin" | URL Parameter for the minimum price |
24
- | [PRODUCTID_PARAMETER](#productid_parameter): [String](TopLevel.String.md) = "pid" | URL Parameter for the product ID |
25
- | [PROMOTIONID_PARAMETER](#promotionid_parameter): [String](TopLevel.String.md) = "pmid" | URL Parameter for the promotion ID |
26
- | [PROMOTION_PRODUCT_TYPE_ALL](#promotion_product_type_all): [String](TopLevel.String.md) = "all" | constant indicating that all related products should be returned for the next product search by promotion ID |
27
- | [PROMOTION_PRODUCT_TYPE_BONUS](#promotion_product_type_bonus): [String](TopLevel.String.md) = "bonus" | constant indicating that only bonus products should be returned for the next product search by promotion ID. |
28
- | [PROMOTION_PRODUCT_TYPE_DISCOUNTED](#promotion_product_type_discounted): [String](TopLevel.String.md) = "discounted" | constant indicating that only discounted products should be returned for the next product search by promotion ID |
29
- | [PROMOTION_PRODUCT_TYPE_PARAMETER](#promotion_product_type_parameter): [String](TopLevel.String.md) = "pmpt" | URL Parameter for the promotion product type |
30
- | [PROMOTION_PRODUCT_TYPE_QUALIFYING](#promotion_product_type_qualifying): [String](TopLevel.String.md) = "qualifying" | constant indicating that only qualifying products should be returned for the next product search by promotion ID |
31
- | [REFINE_NAME_PARAMETER_PREFIX](#refine_name_parameter_prefix): [String](TopLevel.String.md) = "prefn" | URL Parameter prefix for a refinement name |
32
- | [REFINE_VALUE_PARAMETER_PREFIX](#refine_value_parameter_prefix): [String](TopLevel.String.md) = "prefv" | URL Parameter prefix for a refinement value |
33
- | [SORTING_OPTION_PARAMETER](#sorting_option_parameter): [String](TopLevel.String.md) = "sopt" | URL Parameter prefix for a sorting option |
34
- | [SORTING_RULE_PARAMETER](#sorting_rule_parameter): [String](TopLevel.String.md) = "srule" | URL Parameter prefix for a sorting rule |
35
- | [SORT_BY_PARAMETER_PREFIX](#sort_by_parameter_prefix): [String](TopLevel.String.md) = "psortb" | URL Parameter prefix for a refinement value |
36
- | [SORT_DIRECTION_PARAMETER_PREFIX](#sort_direction_parameter_prefix): [String](TopLevel.String.md) = "psortd" | URL Parameter prefix for a refinement value |
37
-
38
- ## Property Summary
39
-
40
- | Property | Description |
41
- | --- | --- |
42
- | [category](#category): [Category](dw.catalog.Category.md) `(read-only)` | Returns the category object for the category id specified in the query. |
43
- | [categoryID](#categoryid): [String](TopLevel.String.md) | Returns the category id that was specified in the search query. |
44
- | [categorySearch](#categorysearch): [Boolean](TopLevel.Boolean.md) `(read-only)` | The method returns true, if this is a pure search for a category. |
45
- | [deepestCommonCategory](#deepestcommoncategory): [Category](dw.catalog.Category.md) `(read-only)` | Returns the deepest common category of all products in the search result. |
46
- | [effectiveSortingRule](#effectivesortingrule): [SortingRule](dw.catalog.SortingRule.md) `(read-only)` | Returns the sorting rule used to order the products in the results of this query, or `null` if no search has been executed yet. |
47
- | [inventoryIDs](#inventoryids): [List](dw.util.List.md) `(read-only)` | <p> Returns a list of inventory IDs that were specified in the search query or an empty list if no inventory ID set. |
48
- | [orderableProductsOnly](#orderableproductsonly): [Boolean](TopLevel.Boolean.md) | Get the flag indicating whether unorderable products should be excluded when the next call to getProducts() is made. |
49
- | [pageMetaTags](#pagemetatags): [Array](TopLevel.Array.md) `(read-only)` | Returns all page meta tags, defined for this instance for which content can be generated. |
50
- | [personalizedSort](#personalizedsort): [Boolean](TopLevel.Boolean.md) `(read-only)` | The method indicates if the search result is ordered by a personalized sorting rule. |
51
- | [priceMax](#pricemax): [Number](TopLevel.Number.md) | Returns the maximum price by which the search result is refined. |
52
- | [priceMin](#pricemin): [Number](TopLevel.Number.md) | Returns the minimum price by which the search result is refined. |
53
- | ~~[productID](#productid): [String](TopLevel.String.md)~~ | Returns the product id that was specified in the search query. |
54
- | [productIDs](#productids): [List](dw.util.List.md) | Returns a list of product IDs that were specified in the search query or an empty list if no product ID set. |
55
- | [productSearchHits](#productsearchhits): [Iterator](dw.util.Iterator.md) `(read-only)` | Returns the product search hits in the search result. |
56
- | ~~[products](#products): [Iterator](dw.util.Iterator.md)~~ `(read-only)` | Returns all products in the search result. |
57
- | [promotionID](#promotionid): [String](TopLevel.String.md) | Returns the promotion id that was specified in the search query or null if no promotion id set. |
58
- | [promotionIDs](#promotionids): [List](dw.util.List.md) | Returns a list of promotion id's that were specified in the search query or an empty list if no promotion id set. |
59
- | [promotionProductType](#promotionproducttype): [String](TopLevel.String.md) | Returns the promotion product type specified in the search query. |
60
- | [recursiveCategorySearch](#recursivecategorysearch): [Boolean](TopLevel.Boolean.md) | Get the flag that determines if the category search will be recursive. |
61
- | [refinedByCategory](#refinedbycategory): [Boolean](TopLevel.Boolean.md) `(read-only)` | The method returns true, if the search is refined by a category. |
62
- | [refinedByPrice](#refinedbyprice): [Boolean](TopLevel.Boolean.md) `(read-only)` | Identifies if this search has been refined by price. |
63
- | [refinedByPromotion](#refinedbypromotion): [Boolean](TopLevel.Boolean.md) `(read-only)` | Identifies if this search has been refined by promotion. |
64
- | [refinedCategorySearch](#refinedcategorysearch): [Boolean](TopLevel.Boolean.md) `(read-only)` | Identifies if this is a category search and is refined with further criteria, like a brand refinement or an attribute refinement. |
65
- | [refinementCategory](#refinementcategory): [Category](dw.catalog.Category.md) | Returns the category used to determine possible refinements for the search. |
66
- | [refinements](#refinements): [ProductSearchRefinements](dw.catalog.ProductSearchRefinements.md) `(read-only)` | Returns the ProductSearchRefinements associated with this search and filtered by session currency. |
67
- | [searchPhraseSuggestions](#searchphrasesuggestions): [SearchPhraseSuggestions](dw.suggest.SearchPhraseSuggestions.md) `(read-only)` | Returns search phrase suggestions for the current search phrase. |
68
- | [searchableImageUploadURL](#searchableimageuploadurl): [String](TopLevel.String.md) `(read-only)` | This method returns the URL of the endpoint where the merchants should upload their image for visual search. |
69
- | [sortingRule](#sortingrule): [SortingRule](dw.catalog.SortingRule.md) | Returns the sorting rule explicitly set on this model to be used to order the products in the results of this query, or `null` if no rule has been explicitly set. |
70
- | [storeInventoryFilter](#storeinventoryfilter): [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md) | <p> Returns the [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md), which was specified for this search. |
71
- | ~~[suggestedSearchPhrase](#suggestedsearchphrase): [String](TopLevel.String.md)~~ `(read-only)` | Returns the suggested search phrase with the highest accuracy provided for the current search phrase. |
72
- | ~~[suggestedSearchPhrases](#suggestedsearchphrases): [List](dw.util.List.md)~~ `(read-only)` | Returns a list with up to 5 suggested search phrases provided for the current search phrase. |
73
- | [trackingEmptySearchesEnabled](#trackingemptysearchesenabled): [Boolean](TopLevel.Boolean.md) `(read-only)` | The method indicates if no-hits search should be tracked for predictive intelligence use. |
74
- | [visualSearch](#visualsearch): [Boolean](TopLevel.Boolean.md) `(read-only)` | The method returns true, if this is a visual search. |
75
-
76
- ## Constructor Summary
77
-
78
- | Constructor | Description |
79
- | --- | --- |
80
- | [ProductSearchModel](#productsearchmodel)() | Constructs a new ProductSearchModel. |
81
-
82
- ## Method Summary
83
-
84
- | Method | Description |
85
- | --- | --- |
86
- | [addHitTypeRefinement](dw.catalog.ProductSearchModel.md#addhittyperefinementstring)([String...](TopLevel.String.md)) | Set the only search hit types to be included from the search. |
87
- | [excludeHitType](dw.catalog.ProductSearchModel.md#excludehittypestring)([String...](TopLevel.String.md)) | Set the search hit types to be excluded from the search. |
88
- | [getCategory](dw.catalog.ProductSearchModel.md#getcategory)() | Returns the category object for the category id specified in the query. |
89
- | [getCategoryID](dw.catalog.ProductSearchModel.md#getcategoryid)() | Returns the category id that was specified in the search query. |
90
- | [getDeepestCommonCategory](dw.catalog.ProductSearchModel.md#getdeepestcommoncategory)() | Returns the deepest common category of all products in the search result. |
91
- | [getEffectiveSortingRule](dw.catalog.ProductSearchModel.md#geteffectivesortingrule)() | Returns the sorting rule used to order the products in the results of this query, or `null` if no search has been executed yet. |
92
- | [getInventoryIDs](dw.catalog.ProductSearchModel.md#getinventoryids)() | <p> Returns a list of inventory IDs that were specified in the search query or an empty list if no inventory ID set. |
93
- | [getOrderableProductsOnly](dw.catalog.ProductSearchModel.md#getorderableproductsonly)() | Get the flag indicating whether unorderable products should be excluded when the next call to getProducts() is made. |
94
- | [getPageMetaTag](dw.catalog.ProductSearchModel.md#getpagemetatagstring)([String](TopLevel.String.md)) | Returns the page meta tag for the specified id. |
95
- | [getPageMetaTags](dw.catalog.ProductSearchModel.md#getpagemetatags)() | Returns all page meta tags, defined for this instance for which content can be generated. |
96
- | [getPriceMax](dw.catalog.ProductSearchModel.md#getpricemax)() | Returns the maximum price by which the search result is refined. |
97
- | [getPriceMin](dw.catalog.ProductSearchModel.md#getpricemin)() | Returns the minimum price by which the search result is refined. |
98
- | ~~[getProductID](dw.catalog.ProductSearchModel.md#getproductid)()~~ | Returns the product id that was specified in the search query. |
99
- | [getProductIDs](dw.catalog.ProductSearchModel.md#getproductids)() | Returns a list of product IDs that were specified in the search query or an empty list if no product ID set. |
100
- | [getProductSearchHit](dw.catalog.ProductSearchModel.md#getproductsearchhitproduct)([Product](dw.catalog.Product.md)) | Returns the underlying ProductSearchHit for a product, or null if no ProductSearchHit found for this product. |
101
- | [getProductSearchHits](dw.catalog.ProductSearchModel.md#getproductsearchhits)() | Returns the product search hits in the search result. |
102
- | ~~[getProducts](dw.catalog.ProductSearchModel.md#getproducts)()~~ | Returns all products in the search result. |
103
- | [getPromotionID](dw.catalog.ProductSearchModel.md#getpromotionid)() | Returns the promotion id that was specified in the search query or null if no promotion id set. |
104
- | [getPromotionIDs](dw.catalog.ProductSearchModel.md#getpromotionids)() | Returns a list of promotion id's that were specified in the search query or an empty list if no promotion id set. |
105
- | [getPromotionProductType](dw.catalog.ProductSearchModel.md#getpromotionproducttype)() | Returns the promotion product type specified in the search query. |
106
- | [getRefinementCategory](dw.catalog.ProductSearchModel.md#getrefinementcategory)() | Returns the category used to determine possible refinements for the search. |
107
- | [getRefinements](dw.catalog.ProductSearchModel.md#getrefinements)() | Returns the ProductSearchRefinements associated with this search and filtered by session currency. |
108
- | [getSearchPhraseSuggestions](dw.catalog.ProductSearchModel.md#getsearchphrasesuggestions)() | Returns search phrase suggestions for the current search phrase. |
109
- | [getSearchableImageUploadURL](dw.catalog.ProductSearchModel.md#getsearchableimageuploadurl)() | This method returns the URL of the endpoint where the merchants should upload their image for visual search. |
110
- | [getSortingRule](dw.catalog.ProductSearchModel.md#getsortingrule)() | Returns the sorting rule explicitly set on this model to be used to order the products in the results of this query, or `null` if no rule has been explicitly set. |
111
- | [getStoreInventoryFilter](dw.catalog.ProductSearchModel.md#getstoreinventoryfilter)() | <p> Returns the [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md), which was specified for this search. |
112
- | ~~[getSuggestedSearchPhrase](dw.catalog.ProductSearchModel.md#getsuggestedsearchphrase)()~~ | Returns the suggested search phrase with the highest accuracy provided for the current search phrase. |
113
- | ~~[getSuggestedSearchPhrases](dw.catalog.ProductSearchModel.md#getsuggestedsearchphrases)()~~ | Returns a list with up to 5 suggested search phrases provided for the current search phrase. |
114
- | [isCategorySearch](dw.catalog.ProductSearchModel.md#iscategorysearch)() | The method returns true, if this is a pure search for a category. |
115
- | [isPersonalizedSort](dw.catalog.ProductSearchModel.md#ispersonalizedsort)() | The method indicates if the search result is ordered by a personalized sorting rule. |
116
- | [isRecursiveCategorySearch](dw.catalog.ProductSearchModel.md#isrecursivecategorysearch)() | Get the flag that determines if the category search will be recursive. |
117
- | [isRefinedByCategory](dw.catalog.ProductSearchModel.md#isrefinedbycategory)() | The method returns true, if the search is refined by a category. |
118
- | [isRefinedByPrice](dw.catalog.ProductSearchModel.md#isrefinedbyprice)() | Identifies if this search has been refined by price. |
119
- | [isRefinedByPriceRange](dw.catalog.ProductSearchModel.md#isrefinedbypricerangenumber-number)([Number](TopLevel.Number.md), [Number](TopLevel.Number.md)) | Identifies if this search has been refined by the given price range. |
120
- | [isRefinedByPromotion](dw.catalog.ProductSearchModel.md#isrefinedbypromotion)() | Identifies if this search has been refined by promotion. |
121
- | [isRefinedByPromotion](dw.catalog.ProductSearchModel.md#isrefinedbypromotionstring)([String](TopLevel.String.md)) | Identifies if this search has been refined by a given promotion. |
122
- | [isRefinedCategorySearch](dw.catalog.ProductSearchModel.md#isrefinedcategorysearch)() | Identifies if this is a category search and is refined with further criteria, like a brand refinement or an attribute refinement. |
123
- | [isTrackingEmptySearchesEnabled](dw.catalog.ProductSearchModel.md#istrackingemptysearchesenabled)() | The method indicates if no-hits search should be tracked for predictive intelligence use. |
124
- | [isVisualSearch](dw.catalog.ProductSearchModel.md#isvisualsearch)() | The method returns true, if this is a visual search. |
125
- | [search](dw.catalog.ProductSearchModel.md#search)() | Execute the search based on the configured search term, category and filter conditions (price, attribute, promotion, product type) and return the execution status. |
126
- | [setCategoryID](dw.catalog.ProductSearchModel.md#setcategoryidstring)([String](TopLevel.String.md)) | Specifies the category id used for the search query. |
127
- | [setEnableTrackingEmptySearches](dw.catalog.ProductSearchModel.md#setenabletrackingemptysearchesboolean)([Boolean](TopLevel.Boolean.md)) | Set a flag indicating whether no-hits search should be tracked for predictive intelligence use. |
128
- | [setInventoryListIDs](dw.catalog.ProductSearchModel.md#setinventorylistidslist)([List](dw.util.List.md)) | <p> Specifies multiple inventory list IDs used for the search query. |
129
- | [setOrderableProductsOnly](dw.catalog.ProductSearchModel.md#setorderableproductsonlyboolean)([Boolean](TopLevel.Boolean.md)) | Set a flag indicating whether unorderable products should be excluded when the next call to getProducts() is made. |
130
- | [setPriceMax](dw.catalog.ProductSearchModel.md#setpricemaxnumber)([Number](TopLevel.Number.md)) | Sets the maximum price by which the search result is to be refined. |
131
- | [setPriceMin](dw.catalog.ProductSearchModel.md#setpriceminnumber)([Number](TopLevel.Number.md)) | Sets the minimum price by which the search result is to be refined. |
132
- | ~~[setProductID](dw.catalog.ProductSearchModel.md#setproductidstring)([String](TopLevel.String.md))~~ | Specifies the product id used for the search query. |
133
- | [setProductIDs](dw.catalog.ProductSearchModel.md#setproductidslist)([List](dw.util.List.md)) | Specifies multiple product IDs used for the search query. |
134
- | [setPromotionID](dw.catalog.ProductSearchModel.md#setpromotionidstring)([String](TopLevel.String.md)) | Specifies the promotion id used for the search query. |
135
- | [setPromotionIDs](dw.catalog.ProductSearchModel.md#setpromotionidslist)([List](dw.util.List.md)) | Specifies multiple promotion id's used for the search query. |
136
- | [setPromotionProductType](dw.catalog.ProductSearchModel.md#setpromotionproducttypestring)([String](TopLevel.String.md)) | Specifies the promotion product type used for the search query. |
137
- | [setRecursiveCategorySearch](dw.catalog.ProductSearchModel.md#setrecursivecategorysearchboolean)([Boolean](TopLevel.Boolean.md)) | Set a flag to indicate if the search in category should be recursive. |
138
- | [setRefinementCategory](dw.catalog.ProductSearchModel.md#setrefinementcategorycategory)([Category](dw.catalog.Category.md)) | Sets an explicit category to be used when determining refinements. |
139
- | [setSearchableImageID](dw.catalog.ProductSearchModel.md#setsearchableimageidstring)([String](TopLevel.String.md)) | An image ID can be retrieved by uploading an image with a multipart/form-data POST request to 'https://api.cquotient.com/v3/image/search/upload/{siteID}'. |
140
- | ~~[setSortingCondition](dw.catalog.ProductSearchModel.md#setsortingconditionstring-number)([String](TopLevel.String.md), [Number](TopLevel.Number.md))~~ | Sets or removes a sorting condition for the specified attribute. |
141
- | [setSortingOption](dw.catalog.ProductSearchModel.md#setsortingoptionsortingoption)([SortingOption](dw.catalog.SortingOption.md)) | Sets the sorting option to be used to order the products in the results of this query. |
142
- | [setSortingRule](dw.catalog.ProductSearchModel.md#setsortingrulesortingrule)([SortingRule](dw.catalog.SortingRule.md)) | Sets the sorting rule to be used to order the products in the results of this query. |
143
- | [setStoreInventoryFilter](dw.catalog.ProductSearchModel.md#setstoreinventoryfilterstoreinventoryfilter)([StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md)) | <p> Filters the search result by one or more inventory list IDs provided by the class [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md) which supports a semantic URL parameter like zip, city, store ... |
144
- | static [urlForCategory](dw.catalog.ProductSearchModel.md#urlforcategoryurl-string)([URL](dw.web.URL.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to execute a query for a specific Category. |
145
- | static [urlForCategory](dw.catalog.ProductSearchModel.md#urlforcategorystring-string)([String](TopLevel.String.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to execute a query for a specific Category. |
146
- | static [urlForProduct](dw.catalog.ProductSearchModel.md#urlforproducturl-string-string)([URL](dw.web.URL.md), [String](TopLevel.String.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to execute a query for a specific Product. |
147
- | static [urlForProduct](dw.catalog.ProductSearchModel.md#urlforproductstring-string-string)([String](TopLevel.String.md), [String](TopLevel.String.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to execute a query for a specific Product. |
148
- | static [urlForRefine](dw.catalog.ProductSearchModel.md#urlforrefineurl-string-string)([URL](dw.web.URL.md), [String](TopLevel.String.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to execute a query for a specific attribute name-value pair. |
149
- | static [urlForRefine](dw.catalog.ProductSearchModel.md#urlforrefinestring-string-string)([String](TopLevel.String.md), [String](TopLevel.String.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to execute a query for a specific attribute name-value pair. |
150
- | [urlRefineCategory](dw.catalog.ProductSearchModel.md#urlrefinecategoryurl-string)([URL](dw.web.URL.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to re-execute the query with a category refinement. |
151
- | [urlRefineCategory](dw.catalog.ProductSearchModel.md#urlrefinecategorystring-string)([String](TopLevel.String.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to re-execute the query with a category refinement. |
152
- | [urlRefinePrice](dw.catalog.ProductSearchModel.md#urlrefinepriceurl-number-number)([URL](dw.web.URL.md), [Number](TopLevel.Number.md), [Number](TopLevel.Number.md)) | Constructs a URL that you can use to re-execute the query with an additional price filter. |
153
- | [urlRefinePrice](dw.catalog.ProductSearchModel.md#urlrefinepricestring-number-number)([String](TopLevel.String.md), [Number](TopLevel.Number.md), [Number](TopLevel.Number.md)) | Constructs a URL that you can use to re-execute the query with an additional price filter. |
154
- | [urlRefinePromotion](dw.catalog.ProductSearchModel.md#urlrefinepromotionurl-string)([URL](dw.web.URL.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to re-execute the query with a promotion refinement. |
155
- | [urlRefinePromotion](dw.catalog.ProductSearchModel.md#urlrefinepromotionstring-string)([String](TopLevel.String.md), [String](TopLevel.String.md)) | Constructs a URL that you can use to re-execute the query with a promotion refinement. |
156
- | [urlRelaxCategory](dw.catalog.ProductSearchModel.md#urlrelaxcategoryurl)([URL](dw.web.URL.md)) | Constructs a URL that you can use to re-execute the query without any category refinement. |
157
- | [urlRelaxCategory](dw.catalog.ProductSearchModel.md#urlrelaxcategorystring)([String](TopLevel.String.md)) | Constructs a URL that you can use to re-execute the query without any category refinement. |
158
- | [urlRelaxPrice](dw.catalog.ProductSearchModel.md#urlrelaxpriceurl)([URL](dw.web.URL.md)) | Constructs a URL that you can use to would re-execute the query with no price filter. |
159
- | [urlRelaxPrice](dw.catalog.ProductSearchModel.md#urlrelaxpricestring)([String](TopLevel.String.md)) | Constructs a URL that you can use to re-execute the query with no price filter. |
160
- | [urlRelaxPromotion](dw.catalog.ProductSearchModel.md#urlrelaxpromotionurl)([URL](dw.web.URL.md)) | Constructs a URL that you can use to re-execute the query without any promotion refinement. |
161
- | [urlRelaxPromotion](dw.catalog.ProductSearchModel.md#urlrelaxpromotionstring)([String](TopLevel.String.md)) | Constructs a URL that you can use to re-execute the query without any promotion refinement. |
162
- | [urlSortingOption](dw.catalog.ProductSearchModel.md#urlsortingoptionurl-sortingoption)([URL](dw.web.URL.md), [SortingOption](dw.catalog.SortingOption.md)) | Constructs a URL that you can use to re-execute the query but sort the results by the given storefront sorting option. |
163
- | [urlSortingOption](dw.catalog.ProductSearchModel.md#urlsortingoptionstring-sortingoption)([String](TopLevel.String.md), [SortingOption](dw.catalog.SortingOption.md)) | Constructs a URL that you can use to re-execute the query but sort the results by the given storefront sorting option. |
164
- | [urlSortingRule](dw.catalog.ProductSearchModel.md#urlsortingruleurl-sortingrule)([URL](dw.web.URL.md), [SortingRule](dw.catalog.SortingRule.md)) | Constructs a URL that you can use to re-execute the query but sort the results by the given rule. |
165
- | [urlSortingRule](dw.catalog.ProductSearchModel.md#urlsortingrulestring-sortingrule)([String](TopLevel.String.md), [SortingRule](dw.catalog.SortingRule.md)) | Constructs a URL that you can use to re-execute the query but sort the results by the given rule. |
166
-
167
- ### Methods inherited from class SearchModel
168
-
169
- [addRefinementValues](dw.catalog.SearchModel.md#addrefinementvaluesstring-string), [canRelax](dw.catalog.SearchModel.md#canrelax), [getCount](dw.catalog.SearchModel.md#getcount), [getRefinementMaxValue](dw.catalog.SearchModel.md#getrefinementmaxvaluestring), [getRefinementMinValue](dw.catalog.SearchModel.md#getrefinementminvaluestring), [getRefinementValue](dw.catalog.SearchModel.md#getrefinementvaluestring), [getRefinementValues](dw.catalog.SearchModel.md#getrefinementvaluesstring), [getSearchPhrase](dw.catalog.SearchModel.md#getsearchphrase), [getSearchRedirect](dw.catalog.SearchModel.md#getsearchredirectstring), [getSortingCondition](dw.catalog.SearchModel.md#getsortingconditionstring), [isEmptyQuery](dw.catalog.SearchModel.md#isemptyquery), [isRefinedByAttribute](dw.catalog.SearchModel.md#isrefinedbyattribute), [isRefinedByAttribute](dw.catalog.SearchModel.md#isrefinedbyattributestring), [isRefinedByAttributeValue](dw.catalog.SearchModel.md#isrefinedbyattributevaluestring-string), [isRefinedSearch](dw.catalog.SearchModel.md#isrefinedsearch), [isRefinementByValueRange](dw.catalog.SearchModel.md#isrefinementbyvaluerangestring), [isRefinementByValueRange](dw.catalog.SearchModel.md#isrefinementbyvaluerangestring-string-string), [removeRefinementValues](dw.catalog.SearchModel.md#removerefinementvaluesstring-string), [search](dw.catalog.SearchModel.md#search), [setRefinementValueRange](dw.catalog.SearchModel.md#setrefinementvaluerangestring-string-string), [setRefinementValues](dw.catalog.SearchModel.md#setrefinementvaluesstring-string), [setSearchPhrase](dw.catalog.SearchModel.md#setsearchphrasestring), [setSortingCondition](dw.catalog.SearchModel.md#setsortingconditionstring-number), [url](dw.catalog.SearchModel.md#urlurl), [url](dw.catalog.SearchModel.md#urlstring), [urlDefaultSort](dw.catalog.SearchModel.md#urldefaultsorturl), [urlDefaultSort](dw.catalog.SearchModel.md#urldefaultsortstring), [urlRefineAttribute](dw.catalog.SearchModel.md#urlrefineattributeurl-string-string), [urlRefineAttribute](dw.catalog.SearchModel.md#urlrefineattributestring-string-string), [urlRefineAttributeValue](dw.catalog.SearchModel.md#urlrefineattributevalueurl-string-string), [urlRefineAttributeValue](dw.catalog.SearchModel.md#urlrefineattributevaluestring-string-string), [urlRefineAttributeValueRange](dw.catalog.SearchModel.md#urlrefineattributevaluerangestring-string-string-string), [urlRelaxAttribute](dw.catalog.SearchModel.md#urlrelaxattributeurl-string), [urlRelaxAttribute](dw.catalog.SearchModel.md#urlrelaxattributestring-string), [urlRelaxAttributeValue](dw.catalog.SearchModel.md#urlrelaxattributevalueurl-string-string), [urlRelaxAttributeValue](dw.catalog.SearchModel.md#urlrelaxattributevaluestring-string-string), [urlSort](dw.catalog.SearchModel.md#urlsorturl-string-number), [urlSort](dw.catalog.SearchModel.md#urlsortstring-string-number)
170
- ### Methods inherited from class Object
171
-
172
- [assign](TopLevel.Object.md#assignobject-object), [create](TopLevel.Object.md#createobject), [create](TopLevel.Object.md#createobject-object), [defineProperties](TopLevel.Object.md#definepropertiesobject-object), [defineProperty](TopLevel.Object.md#definepropertyobject-object-object), [entries](TopLevel.Object.md#entriesobject), [freeze](TopLevel.Object.md#freezeobject), [fromEntries](TopLevel.Object.md#fromentriesiterable), [getOwnPropertyDescriptor](TopLevel.Object.md#getownpropertydescriptorobject-object), [getOwnPropertyNames](TopLevel.Object.md#getownpropertynamesobject), [getOwnPropertySymbols](TopLevel.Object.md#getownpropertysymbolsobject), [getPrototypeOf](TopLevel.Object.md#getprototypeofobject), [hasOwnProperty](TopLevel.Object.md#hasownpropertystring), [is](TopLevel.Object.md#isobject-object), [isExtensible](TopLevel.Object.md#isextensibleobject), [isFrozen](TopLevel.Object.md#isfrozenobject), [isPrototypeOf](TopLevel.Object.md#isprototypeofobject), [isSealed](TopLevel.Object.md#issealedobject), [keys](TopLevel.Object.md#keysobject), [preventExtensions](TopLevel.Object.md#preventextensionsobject), [propertyIsEnumerable](TopLevel.Object.md#propertyisenumerablestring), [seal](TopLevel.Object.md#sealobject), [setPrototypeOf](TopLevel.Object.md#setprototypeofobject-object), [toLocaleString](TopLevel.Object.md#tolocalestring), [toString](TopLevel.Object.md#tostring), [valueOf](TopLevel.Object.md#valueof), [values](TopLevel.Object.md#valuesobject)
173
- ## Constant Details
174
-
175
- ### CATEGORYID_PARAMETER
176
-
177
- - CATEGORYID_PARAMETER: [String](TopLevel.String.md) = "cgid"
178
- - : URL Parameter for the category ID
179
-
180
-
181
- ---
182
-
183
- ### INVENTORY_LIST_IDS_PARAMETER
184
-
185
- - INVENTORY_LIST_IDS_PARAMETER: [String](TopLevel.String.md) = "ilids"
186
- - : URL Parameter for the inventory list IDs
187
-
188
-
189
- ---
190
-
191
- ### MAXIMUM_INVENTORY_LIST_IDS
192
-
193
- - MAXIMUM_INVENTORY_LIST_IDS: [Number](TopLevel.Number.md) = 10
194
- - : The maximum number of inventory list IDs that can be passed to [setInventoryListIDs(List)](dw.catalog.ProductSearchModel.md#setinventorylistidslist)
195
-
196
-
197
- ---
198
-
199
- ### MAXIMUM_PRODUCT_IDS
200
-
201
- - MAXIMUM_PRODUCT_IDS: [Number](TopLevel.Number.md) = 30
202
- - : The maximum number of product IDs that can be passed to [setProductIDs(List)](dw.catalog.ProductSearchModel.md#setproductidslist)
203
-
204
-
205
- ---
206
-
207
- ### MAXIMUM_STORE_INVENTORY_FILTER_VALUES
208
-
209
- - MAXIMUM_STORE_INVENTORY_FILTER_VALUES: [Number](TopLevel.Number.md) = 10
210
- - : The maximum number of store inventory values for a store inventory filter that can be passed to
211
- [setStoreInventoryFilter(StoreInventoryFilter)](dw.catalog.ProductSearchModel.md#setstoreinventoryfilterstoreinventoryfilter)
212
-
213
-
214
-
215
- ---
216
-
217
- ### PRICE_MAX_PARAMETER
218
-
219
- - PRICE_MAX_PARAMETER: [String](TopLevel.String.md) = "pmax"
220
- - : URL Parameter for the maximum price
221
-
222
-
223
- ---
224
-
225
- ### PRICE_MIN_PARAMETER
226
-
227
- - PRICE_MIN_PARAMETER: [String](TopLevel.String.md) = "pmin"
228
- - : URL Parameter for the minimum price
229
-
230
-
231
- ---
232
-
233
- ### PRODUCTID_PARAMETER
234
-
235
- - PRODUCTID_PARAMETER: [String](TopLevel.String.md) = "pid"
236
- - : URL Parameter for the product ID
237
-
238
-
239
- ---
240
-
241
- ### PROMOTIONID_PARAMETER
242
-
243
- - PROMOTIONID_PARAMETER: [String](TopLevel.String.md) = "pmid"
244
- - : URL Parameter for the promotion ID
245
-
246
-
247
- ---
248
-
249
- ### PROMOTION_PRODUCT_TYPE_ALL
250
-
251
- - PROMOTION_PRODUCT_TYPE_ALL: [String](TopLevel.String.md) = "all"
252
- - : constant indicating that all related products should be returned for the next product search by promotion ID
253
-
254
-
255
- ---
256
-
257
- ### PROMOTION_PRODUCT_TYPE_BONUS
258
-
259
- - PROMOTION_PRODUCT_TYPE_BONUS: [String](TopLevel.String.md) = "bonus"
260
- - : constant indicating that only bonus products should be returned for the next product search by promotion ID. This
261
- constant should be set using [setPromotionProductType(String)](dw.catalog.ProductSearchModel.md#setpromotionproducttypestring) when using the search model to find the
262
- available list of bonus products for a Choice of Bonus Product (Rule) promotion, along with
263
- [setPromotionID(String)](dw.catalog.ProductSearchModel.md#setpromotionidstring).
264
-
265
-
266
-
267
- ---
268
-
269
- ### PROMOTION_PRODUCT_TYPE_DISCOUNTED
270
-
271
- - PROMOTION_PRODUCT_TYPE_DISCOUNTED: [String](TopLevel.String.md) = "discounted"
272
- - : constant indicating that only discounted products should be returned for the next product search by promotion ID
273
-
274
-
275
- ---
276
-
277
- ### PROMOTION_PRODUCT_TYPE_PARAMETER
278
-
279
- - PROMOTION_PRODUCT_TYPE_PARAMETER: [String](TopLevel.String.md) = "pmpt"
280
- - : URL Parameter for the promotion product type
281
-
282
-
283
- ---
284
-
285
- ### PROMOTION_PRODUCT_TYPE_QUALIFYING
286
-
287
- - PROMOTION_PRODUCT_TYPE_QUALIFYING: [String](TopLevel.String.md) = "qualifying"
288
- - : constant indicating that only qualifying products should be returned for the next product search by promotion ID
289
-
290
-
291
- ---
292
-
293
- ### REFINE_NAME_PARAMETER_PREFIX
294
-
295
- - REFINE_NAME_PARAMETER_PREFIX: [String](TopLevel.String.md) = "prefn"
296
- - : URL Parameter prefix for a refinement name
297
-
298
-
299
- ---
300
-
301
- ### REFINE_VALUE_PARAMETER_PREFIX
302
-
303
- - REFINE_VALUE_PARAMETER_PREFIX: [String](TopLevel.String.md) = "prefv"
304
- - : URL Parameter prefix for a refinement value
305
-
306
-
307
- ---
308
-
309
- ### SORTING_OPTION_PARAMETER
310
-
311
- - SORTING_OPTION_PARAMETER: [String](TopLevel.String.md) = "sopt"
312
- - : URL Parameter prefix for a sorting option
313
-
314
-
315
- ---
316
-
317
- ### SORTING_RULE_PARAMETER
318
-
319
- - SORTING_RULE_PARAMETER: [String](TopLevel.String.md) = "srule"
320
- - : URL Parameter prefix for a sorting rule
321
-
322
-
323
- ---
324
-
325
- ### SORT_BY_PARAMETER_PREFIX
326
-
327
- - SORT_BY_PARAMETER_PREFIX: [String](TopLevel.String.md) = "psortb"
328
- - : URL Parameter prefix for a refinement value
329
-
330
-
331
- ---
332
-
333
- ### SORT_DIRECTION_PARAMETER_PREFIX
334
-
335
- - SORT_DIRECTION_PARAMETER_PREFIX: [String](TopLevel.String.md) = "psortd"
336
- - : URL Parameter prefix for a refinement value
337
-
338
-
339
- ---
340
-
341
- ## Property Details
342
-
343
- ### category
344
- - category: [Category](dw.catalog.Category.md) `(read-only)`
345
- - : Returns the category object for the category id specified in the query.
346
- If a category with that id doesn't exist or if the category is offline
347
- this method returns null.
348
-
349
-
350
-
351
- ---
352
-
353
- ### categoryID
354
- - categoryID: [String](TopLevel.String.md)
355
- - : Returns the category id that was specified in the search query.
356
-
357
-
358
- ---
359
-
360
- ### categorySearch
361
- - categorySearch: [Boolean](TopLevel.Boolean.md) `(read-only)`
362
- - : The method returns true, if this is a pure search for a category. The
363
- method checks, that a category ID is specified and no search phrase is
364
- specified.
365
-
366
-
367
-
368
- ---
369
-
370
- ### deepestCommonCategory
371
- - deepestCommonCategory: [Category](dw.catalog.Category.md) `(read-only)`
372
- - : Returns the deepest common category of all products in the search result.
373
- In case of an empty search result the method returns the root category.
374
-
375
-
376
-
377
- ---
378
-
379
- ### effectiveSortingRule
380
- - effectiveSortingRule: [SortingRule](dw.catalog.SortingRule.md) `(read-only)`
381
- - : Returns the sorting rule used to order the products in the results of this query,
382
- or `null` if no search has been executed yet.
383
-
384
- In contrast to [getSortingRule()](dw.catalog.ProductSearchModel.md#getsortingrule), this method respects explicit sorting rules and sorting options and rules determined implicitly
385
- based on the refinement category, keyword sorting rule assignment, etc.
386
-
387
-
388
-
389
- ---
390
-
391
- ### inventoryIDs
392
- - inventoryIDs: [List](dw.util.List.md) `(read-only)`
393
- - :
394
-
395
- Returns a list of inventory IDs that were specified in the search query or an empty list if no inventory ID set.
396
-
397
-
398
-
399
- ---
400
-
401
- ### orderableProductsOnly
402
- - orderableProductsOnly: [Boolean](TopLevel.Boolean.md)
403
- - : Get the flag indicating whether unorderable products should be excluded
404
- when the next call to getProducts() is made. If this value has not been
405
- previously set, then the value returned will be based on the value of the
406
- search preference.
407
-
408
-
409
-
410
- ---
411
-
412
- ### pageMetaTags
413
- - pageMetaTags: [Array](TopLevel.Array.md) `(read-only)`
414
- - : Returns all page meta tags, defined for this instance for which content can be generated.
415
-
416
-
417
- The meta tag content is generated based on the product listing page meta tag context and rules.
418
- The rules are obtained from the current category context or inherited from the parent category,
419
- up to the root category.
420
-
421
-
422
-
423
- ---
424
-
425
- ### personalizedSort
426
- - personalizedSort: [Boolean](TopLevel.Boolean.md) `(read-only)`
427
- - : The method indicates if the search result is ordered by a personalized sorting rule.
428
-
429
-
430
- ---
431
-
432
- ### priceMax
433
- - priceMax: [Number](TopLevel.Number.md)
434
- - : Returns the maximum price by which the search result is refined.
435
-
436
-
437
- ---
438
-
439
- ### priceMin
440
- - priceMin: [Number](TopLevel.Number.md)
441
- - : Returns the minimum price by which the search result is refined.
442
-
443
-
444
- ---
445
-
446
- ### productID
447
- - ~~productID: [String](TopLevel.String.md)~~
448
- - : Returns the product id that was specified in the search query.
449
-
450
- **Deprecated:**
451
- :::warning
452
- Please use [getProductIDs()](dw.catalog.ProductSearchModel.md#getproductids) instead
453
- :::
454
-
455
- ---
456
-
457
- ### productIDs
458
- - productIDs: [List](dw.util.List.md)
459
- - : Returns a list of product IDs that were specified in the search query or an empty list if no product ID set.
460
-
461
-
462
- ---
463
-
464
- ### productSearchHits
465
- - productSearchHits: [Iterator](dw.util.Iterator.md) `(read-only)`
466
- - : Returns the product search hits in the search result.
467
-
468
- Note that method does also return search hits representing products that
469
- were removed or went offline since the last index update, i.e. you must
470
- implement appropriate checks before accessing the product related to the
471
- search hit instance (see [ProductSearchHit.getProduct()](dw.catalog.ProductSearchHit.md#getproduct))
472
-
473
-
474
- **See Also:**
475
- - [getProducts()](dw.catalog.ProductSearchModel.md#getproducts)
476
-
477
-
478
- ---
479
-
480
- ### products
481
- - ~~products: [Iterator](dw.util.Iterator.md)~~ `(read-only)`
482
- - : Returns all products in the search result.
483
-
484
- Note that products that were removed or went offline since the last index
485
- update are not included in the returned set.
486
-
487
-
488
- **See Also:**
489
- - [getProductSearchHits()](dw.catalog.ProductSearchModel.md#getproductsearchhits)
490
-
491
- **Deprecated:**
492
- :::warning
493
- This method should not be used because loading Products for each result of a product search is
494
- extremely expensive performance-wise. Please use [getProductSearchHits()](dw.catalog.ProductSearchModel.md#getproductsearchhits) to iterate
495
- ProductSearchHits instead.
496
-
497
- :::
498
-
499
- ---
500
-
501
- ### promotionID
502
- - promotionID: [String](TopLevel.String.md)
503
- - : Returns the promotion id that was specified in the search query or null if no promotion id set. If multiple
504
- promotion id's specified the method returns only the first id. See [setPromotionIDs(List)](dw.catalog.ProductSearchModel.md#setpromotionidslist) and
505
- [getPromotionIDs()](dw.catalog.ProductSearchModel.md#getpromotionids).
506
-
507
-
508
-
509
- ---
510
-
511
- ### promotionIDs
512
- - promotionIDs: [List](dw.util.List.md)
513
- - : Returns a list of promotion id's that were specified in the search query or an empty list if no promotion id set.
514
-
515
-
516
- ---
517
-
518
- ### promotionProductType
519
- - promotionProductType: [String](TopLevel.String.md)
520
- - : Returns the promotion product type specified in the search query.
521
-
522
-
523
- ---
524
-
525
- ### recursiveCategorySearch
526
- - recursiveCategorySearch: [Boolean](TopLevel.Boolean.md)
527
- - : Get the flag that determines if the category search will
528
- be recursive.
529
-
530
-
531
-
532
- ---
533
-
534
- ### refinedByCategory
535
- - refinedByCategory: [Boolean](TopLevel.Boolean.md) `(read-only)`
536
- - : The method returns true, if the search is refined by a category.
537
- The method checks, that a category ID is specified.
538
-
539
-
540
-
541
- ---
542
-
543
- ### refinedByPrice
544
- - refinedByPrice: [Boolean](TopLevel.Boolean.md) `(read-only)`
545
- - : Identifies if this search has been refined by price.
546
-
547
-
548
- ---
549
-
550
- ### refinedByPromotion
551
- - refinedByPromotion: [Boolean](TopLevel.Boolean.md) `(read-only)`
552
- - : Identifies if this search has been refined by promotion.
553
-
554
-
555
- ---
556
-
557
- ### refinedCategorySearch
558
- - refinedCategorySearch: [Boolean](TopLevel.Boolean.md) `(read-only)`
559
- - : Identifies if this is a category search and is refined with further
560
- criteria, like a brand refinement or an attribute refinement.
561
-
562
-
563
-
564
- ---
565
-
566
- ### refinementCategory
567
- - refinementCategory: [Category](dw.catalog.Category.md)
568
- - : Returns the category used to determine possible refinements for the search.
569
- If an explicit category was set for this purpose using [setRefinementCategory(Category)](dw.catalog.ProductSearchModel.md#setrefinementcategorycategory), it is returned.
570
- Otherwise, the deepest common category of all search results will be returned.
571
-
572
-
573
-
574
- ---
575
-
576
- ### refinements
577
- - refinements: [ProductSearchRefinements](dw.catalog.ProductSearchRefinements.md) `(read-only)`
578
- - : Returns the ProductSearchRefinements associated with this search and filtered by session currency.
579
- If an explicit category was set for this purpose using [setRefinementCategory(Category)](dw.catalog.ProductSearchModel.md#setrefinementcategorycategory), it will be used to determine the refinements.
580
- Otherwise, the refinements are determined based on the deepest common category of all products in the search result.
581
- Hint: If you want to use the same refinements for all searches, consider defining them in one category (usually root) and using [setRefinementCategory(Category)](dw.catalog.ProductSearchModel.md#setrefinementcategorycategory) to avoid unnecessary calculation of the deepest common category.
582
-
583
-
584
-
585
- ---
586
-
587
- ### searchPhraseSuggestions
588
- - searchPhraseSuggestions: [SearchPhraseSuggestions](dw.suggest.SearchPhraseSuggestions.md) `(read-only)`
589
- - : Returns search phrase suggestions for the current search phrase.
590
- Search phrase suggestions may contain alternative search phrases as well
591
- as lists of corrected and completed search terms.
592
-
593
-
594
-
595
- ---
596
-
597
- ### searchableImageUploadURL
598
- - searchableImageUploadURL: [String](TopLevel.String.md) `(read-only)`
599
- - : This method returns the URL of the endpoint where the merchants should upload their image for visual search.
600
-
601
-
602
- ---
603
-
604
- ### sortingRule
605
- - sortingRule: [SortingRule](dw.catalog.SortingRule.md)
606
- - : Returns the sorting rule explicitly set on this model to be used
607
- to order the products in the results of this query, or `null`
608
- if no rule has been explicitly set.
609
-
610
- This method does not return the sorting rule that will be used implicitly
611
- based on the context of the search, such as the refinement category.
612
-
613
-
614
-
615
- ---
616
-
617
- ### storeInventoryFilter
618
- - storeInventoryFilter: [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md)
619
- - :
620
-
621
- Returns the [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md), which was specified for this search.
622
-
623
-
624
-
625
- ---
626
-
627
- ### suggestedSearchPhrase
628
- - ~~suggestedSearchPhrase: [String](TopLevel.String.md)~~ `(read-only)`
629
- - : Returns the suggested search phrase with the highest accuracy provided
630
- for the current search phrase.
631
-
632
-
633
- **Deprecated:**
634
- :::warning
635
- Please use [getSearchPhraseSuggestions()](dw.catalog.ProductSearchModel.md#getsearchphrasesuggestions) instead
636
- :::
637
-
638
- ---
639
-
640
- ### suggestedSearchPhrases
641
- - ~~suggestedSearchPhrases: [List](dw.util.List.md)~~ `(read-only)`
642
- - : Returns a list with up to 5 suggested search phrases provided for the
643
- current search phrase. It is possible that less than 5 suggestions
644
- or even no suggestions are returned.
645
-
646
-
647
- **Deprecated:**
648
- :::warning
649
- Please use [getSearchPhraseSuggestions()](dw.catalog.ProductSearchModel.md#getsearchphrasesuggestions) instead
650
- :::
651
-
652
- ---
653
-
654
- ### trackingEmptySearchesEnabled
655
- - trackingEmptySearchesEnabled: [Boolean](TopLevel.Boolean.md) `(read-only)`
656
- - : The method indicates if no-hits search should be tracked for predictive intelligence use.
657
-
658
-
659
- ---
660
-
661
- ### visualSearch
662
- - visualSearch: [Boolean](TopLevel.Boolean.md) `(read-only)`
663
- - : The method returns true, if this is a visual search. The
664
- method checks that a image UUID is specified.
665
-
666
-
667
-
668
- ---
669
-
670
- ## Constructor Details
671
-
672
- ### ProductSearchModel()
673
- - ProductSearchModel()
674
- - : Constructs a new ProductSearchModel.
675
-
676
-
677
- ---
678
-
679
- ## Method Details
680
-
681
- ### addHitTypeRefinement(String...)
682
- - addHitTypeRefinement(types: [String...](TopLevel.String.md)): void
683
- - : Set the only search hit types to be included from the search. Values accepted are the 'hit type' constants
684
- exposed in the [ProductSearchHit](dw.catalog.ProductSearchHit.md) class. Overwrites any hit type refinements set from prior calls to
685
- addHitTypeRefinement(String...) or excludeHitType(String...).
686
-
687
-
688
- **Parameters:**
689
- - types - to be included.
690
-
691
-
692
- ---
693
-
694
- ### excludeHitType(String...)
695
- - excludeHitType(types: [String...](TopLevel.String.md)): void
696
- - : Set the search hit types to be excluded from the search. Values accepted are the 'hit type' constants exposed in
697
- the [ProductSearchHit](dw.catalog.ProductSearchHit.md) class. Overwrites any hit type refinements set from prior calls to
698
- addHitTypeRefinement(String...) or excludeHitType(String...).
699
-
700
-
701
- **Parameters:**
702
- - types - to be excluded.
703
-
704
-
705
- ---
706
-
707
- ### getCategory()
708
- - getCategory(): [Category](dw.catalog.Category.md)
709
- - : Returns the category object for the category id specified in the query.
710
- If a category with that id doesn't exist or if the category is offline
711
- this method returns null.
712
-
713
-
714
- **Returns:**
715
- - the category object for the category id specified in the query.
716
-
717
-
718
- ---
719
-
720
- ### getCategoryID()
721
- - getCategoryID(): [String](TopLevel.String.md)
722
- - : Returns the category id that was specified in the search query.
723
-
724
- **Returns:**
725
- - the category id that was specified in the search query.
726
-
727
-
728
- ---
729
-
730
- ### getDeepestCommonCategory()
731
- - getDeepestCommonCategory(): [Category](dw.catalog.Category.md)
732
- - : Returns the deepest common category of all products in the search result.
733
- In case of an empty search result the method returns the root category.
734
-
735
-
736
- **Returns:**
737
- - the deepest common category of all products in the search result of this search model or root for an empty search result.
738
-
739
-
740
- ---
741
-
742
- ### getEffectiveSortingRule()
743
- - getEffectiveSortingRule(): [SortingRule](dw.catalog.SortingRule.md)
744
- - : Returns the sorting rule used to order the products in the results of this query,
745
- or `null` if no search has been executed yet.
746
-
747
- In contrast to [getSortingRule()](dw.catalog.ProductSearchModel.md#getsortingrule), this method respects explicit sorting rules and sorting options and rules determined implicitly
748
- based on the refinement category, keyword sorting rule assignment, etc.
749
-
750
-
751
- **Returns:**
752
- - a SortingRule or null.
753
-
754
-
755
- ---
756
-
757
- ### getInventoryIDs()
758
- - getInventoryIDs(): [List](dw.util.List.md)
759
- - :
760
-
761
- Returns a list of inventory IDs that were specified in the search query or an empty list if no inventory ID set.
762
-
763
-
764
- **Returns:**
765
- - the list of inventory IDs that were specified in the search query or an empty list if no
766
- inventory ID set.
767
-
768
-
769
-
770
- ---
771
-
772
- ### getOrderableProductsOnly()
773
- - getOrderableProductsOnly(): [Boolean](TopLevel.Boolean.md)
774
- - : Get the flag indicating whether unorderable products should be excluded
775
- when the next call to getProducts() is made. If this value has not been
776
- previously set, then the value returned will be based on the value of the
777
- search preference.
778
-
779
-
780
- **Returns:**
781
- - true if unorderable products should be excluded from product
782
- search results, false otherwise.
783
-
784
-
785
-
786
- ---
787
-
788
- ### getPageMetaTag(String)
789
- - getPageMetaTag(id: [String](TopLevel.String.md)): [PageMetaTag](dw.web.PageMetaTag.md)
790
- - : Returns the page meta tag for the specified id.
791
-
792
-
793
- The meta tag content is generated based on the product listing page meta tag context and rule.
794
- The rule is obtained from the current category context or inherited from the parent category,
795
- up to the root category.
796
-
797
-
798
- Null will be returned if the meta tag is undefined on the current instance, or if no rule can be found for the
799
- current context, or if the rule resolves to an empty string.
800
-
801
-
802
- **Parameters:**
803
- - id - the ID to get the page meta tag for
804
-
805
- **Returns:**
806
- - page meta tag containing content generated based on rules
807
-
808
-
809
- ---
810
-
811
- ### getPageMetaTags()
812
- - getPageMetaTags(): [Array](TopLevel.Array.md)
813
- - : Returns all page meta tags, defined for this instance for which content can be generated.
814
-
815
-
816
- The meta tag content is generated based on the product listing page meta tag context and rules.
817
- The rules are obtained from the current category context or inherited from the parent category,
818
- up to the root category.
819
-
820
-
821
- **Returns:**
822
- - page meta tags defined for this instance, containing content generated based on rules
823
-
824
-
825
- ---
826
-
827
- ### getPriceMax()
828
- - getPriceMax(): [Number](TopLevel.Number.md)
829
- - : Returns the maximum price by which the search result is refined.
830
-
831
- **Returns:**
832
- - the maximum price by which the search result is refined.
833
-
834
-
835
- ---
836
-
837
- ### getPriceMin()
838
- - getPriceMin(): [Number](TopLevel.Number.md)
839
- - : Returns the minimum price by which the search result is refined.
840
-
841
- **Returns:**
842
- - the minimum price by which the search result is refined.
843
-
844
-
845
- ---
846
-
847
- ### getProductID()
848
- - ~~getProductID(): [String](TopLevel.String.md)~~
849
- - : Returns the product id that was specified in the search query.
850
-
851
- **Returns:**
852
- - the product id that was specified in the search.
853
-
854
- **Deprecated:**
855
- :::warning
856
- Please use [getProductIDs()](dw.catalog.ProductSearchModel.md#getproductids) instead
857
- :::
858
-
859
- ---
860
-
861
- ### getProductIDs()
862
- - getProductIDs(): [List](dw.util.List.md)
863
- - : Returns a list of product IDs that were specified in the search query or an empty list if no product ID set.
864
-
865
- **Returns:**
866
- - the list of product IDs that were specified in the search query or an empty list if no product ID set.
867
-
868
-
869
- ---
870
-
871
- ### getProductSearchHit(Product)
872
- - getProductSearchHit(product: [Product](dw.catalog.Product.md)): [ProductSearchHit](dw.catalog.ProductSearchHit.md)
873
- - : Returns the underlying ProductSearchHit for a product, or null if no
874
- ProductSearchHit found for this product.
875
-
876
-
877
- **Parameters:**
878
- - product - the product to find the underlying ProductSearchHit
879
-
880
- **Returns:**
881
- - the underlying ProductSearchHit for a product, or null if no
882
- ProductSearchHit found for this product.
883
-
884
-
885
-
886
- ---
887
-
888
- ### getProductSearchHits()
889
- - getProductSearchHits(): [Iterator](dw.util.Iterator.md)
890
- - : Returns the product search hits in the search result.
891
-
892
- Note that method does also return search hits representing products that
893
- were removed or went offline since the last index update, i.e. you must
894
- implement appropriate checks before accessing the product related to the
895
- search hit instance (see [ProductSearchHit.getProduct()](dw.catalog.ProductSearchHit.md#getproduct))
896
-
897
-
898
- **Returns:**
899
- - Products hits in search result
900
-
901
- **See Also:**
902
- - [getProducts()](dw.catalog.ProductSearchModel.md#getproducts)
903
-
904
-
905
- ---
906
-
907
- ### getProducts()
908
- - ~~getProducts(): [Iterator](dw.util.Iterator.md)~~
909
- - : Returns all products in the search result.
910
-
911
- Note that products that were removed or went offline since the last index
912
- update are not included in the returned set.
913
-
914
-
915
- **Returns:**
916
- - Products in search result
917
-
918
- **See Also:**
919
- - [getProductSearchHits()](dw.catalog.ProductSearchModel.md#getproductsearchhits)
920
-
921
- **Deprecated:**
922
- :::warning
923
- This method should not be used because loading Products for each result of a product search is
924
- extremely expensive performance-wise. Please use [getProductSearchHits()](dw.catalog.ProductSearchModel.md#getproductsearchhits) to iterate
925
- ProductSearchHits instead.
926
-
927
- :::
928
-
929
- ---
930
-
931
- ### getPromotionID()
932
- - getPromotionID(): [String](TopLevel.String.md)
933
- - : Returns the promotion id that was specified in the search query or null if no promotion id set. If multiple
934
- promotion id's specified the method returns only the first id. See [setPromotionIDs(List)](dw.catalog.ProductSearchModel.md#setpromotionidslist) and
935
- [getPromotionIDs()](dw.catalog.ProductSearchModel.md#getpromotionids).
936
-
937
-
938
- **Returns:**
939
- - the promotion id that was specified in the search query or null if no promotion id set.
940
-
941
-
942
- ---
943
-
944
- ### getPromotionIDs()
945
- - getPromotionIDs(): [List](dw.util.List.md)
946
- - : Returns a list of promotion id's that were specified in the search query or an empty list if no promotion id set.
947
-
948
- **Returns:**
949
- - the list of promotion id's that was specified in the search query or an empty list if no promotion id set.
950
-
951
-
952
- ---
953
-
954
- ### getPromotionProductType()
955
- - getPromotionProductType(): [String](TopLevel.String.md)
956
- - : Returns the promotion product type specified in the search query.
957
-
958
- **Returns:**
959
- - the promotion product type that was specified in the search
960
- query.
961
-
962
-
963
-
964
- ---
965
-
966
- ### getRefinementCategory()
967
- - getRefinementCategory(): [Category](dw.catalog.Category.md)
968
- - : Returns the category used to determine possible refinements for the search.
969
- If an explicit category was set for this purpose using [setRefinementCategory(Category)](dw.catalog.ProductSearchModel.md#setrefinementcategorycategory), it is returned.
970
- Otherwise, the deepest common category of all search results will be returned.
971
-
972
-
973
- **Returns:**
974
- - the category used to determine refinements.
975
-
976
-
977
- ---
978
-
979
- ### getRefinements()
980
- - getRefinements(): [ProductSearchRefinements](dw.catalog.ProductSearchRefinements.md)
981
- - : Returns the ProductSearchRefinements associated with this search and filtered by session currency.
982
- If an explicit category was set for this purpose using [setRefinementCategory(Category)](dw.catalog.ProductSearchModel.md#setrefinementcategorycategory), it will be used to determine the refinements.
983
- Otherwise, the refinements are determined based on the deepest common category of all products in the search result.
984
- Hint: If you want to use the same refinements for all searches, consider defining them in one category (usually root) and using [setRefinementCategory(Category)](dw.catalog.ProductSearchModel.md#setrefinementcategorycategory) to avoid unnecessary calculation of the deepest common category.
985
-
986
-
987
- **Returns:**
988
- - the ProductSearchRefinements associated with this search.
989
-
990
-
991
- ---
992
-
993
- ### getSearchPhraseSuggestions()
994
- - getSearchPhraseSuggestions(): [SearchPhraseSuggestions](dw.suggest.SearchPhraseSuggestions.md)
995
- - : Returns search phrase suggestions for the current search phrase.
996
- Search phrase suggestions may contain alternative search phrases as well
997
- as lists of corrected and completed search terms.
998
-
999
-
1000
- **Returns:**
1001
- - search phrase suggestions for the current search phrase
1002
-
1003
-
1004
- ---
1005
-
1006
- ### getSearchableImageUploadURL()
1007
- - getSearchableImageUploadURL(): [String](TopLevel.String.md)
1008
- - : This method returns the URL of the endpoint where the merchants should upload their image for visual search.
1009
-
1010
- **Returns:**
1011
- - returns the URL where the merchants should upload their image.
1012
-
1013
- **Throws:**
1014
- - RuntimeException -
1015
-
1016
-
1017
- ---
1018
-
1019
- ### getSortingRule()
1020
- - getSortingRule(): [SortingRule](dw.catalog.SortingRule.md)
1021
- - : Returns the sorting rule explicitly set on this model to be used
1022
- to order the products in the results of this query, or `null`
1023
- if no rule has been explicitly set.
1024
-
1025
- This method does not return the sorting rule that will be used implicitly
1026
- based on the context of the search, such as the refinement category.
1027
-
1028
-
1029
- **Returns:**
1030
- - a SortingRule or null.
1031
-
1032
-
1033
- ---
1034
-
1035
- ### getStoreInventoryFilter()
1036
- - getStoreInventoryFilter(): [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md)
1037
- - :
1038
-
1039
- Returns the [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md), which was specified for this search.
1040
-
1041
-
1042
- **Returns:**
1043
- - the [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md), which was specified for this search.
1044
-
1045
-
1046
- ---
1047
-
1048
- ### getSuggestedSearchPhrase()
1049
- - ~~getSuggestedSearchPhrase(): [String](TopLevel.String.md)~~
1050
- - : Returns the suggested search phrase with the highest accuracy provided
1051
- for the current search phrase.
1052
-
1053
-
1054
- **Returns:**
1055
- - the suggested search phrase.
1056
-
1057
- **Deprecated:**
1058
- :::warning
1059
- Please use [getSearchPhraseSuggestions()](dw.catalog.ProductSearchModel.md#getsearchphrasesuggestions) instead
1060
- :::
1061
-
1062
- ---
1063
-
1064
- ### getSuggestedSearchPhrases()
1065
- - ~~getSuggestedSearchPhrases(): [List](dw.util.List.md)~~
1066
- - : Returns a list with up to 5 suggested search phrases provided for the
1067
- current search phrase. It is possible that less than 5 suggestions
1068
- or even no suggestions are returned.
1069
-
1070
-
1071
- **Returns:**
1072
- - a list containing the suggested search phrases.
1073
-
1074
- **Deprecated:**
1075
- :::warning
1076
- Please use [getSearchPhraseSuggestions()](dw.catalog.ProductSearchModel.md#getsearchphrasesuggestions) instead
1077
- :::
1078
-
1079
- ---
1080
-
1081
- ### isCategorySearch()
1082
- - isCategorySearch(): [Boolean](TopLevel.Boolean.md)
1083
- - : The method returns true, if this is a pure search for a category. The
1084
- method checks, that a category ID is specified and no search phrase is
1085
- specified.
1086
-
1087
-
1088
- **Returns:**
1089
- - True if this is a category search
1090
-
1091
-
1092
- ---
1093
-
1094
- ### isPersonalizedSort()
1095
- - isPersonalizedSort(): [Boolean](TopLevel.Boolean.md)
1096
- - : The method indicates if the search result is ordered by a personalized sorting rule.
1097
-
1098
- **Returns:**
1099
- - true if search result is ordered by a personalized sorting rule, otherwise false.
1100
-
1101
-
1102
- ---
1103
-
1104
- ### isRecursiveCategorySearch()
1105
- - isRecursiveCategorySearch(): [Boolean](TopLevel.Boolean.md)
1106
- - : Get the flag that determines if the category search will
1107
- be recursive.
1108
-
1109
-
1110
- **Returns:**
1111
- - true if the category search will be recursive, false otherwise
1112
-
1113
-
1114
- ---
1115
-
1116
- ### isRefinedByCategory()
1117
- - isRefinedByCategory(): [Boolean](TopLevel.Boolean.md)
1118
- - : The method returns true, if the search is refined by a category.
1119
- The method checks, that a category ID is specified.
1120
-
1121
-
1122
- **Returns:**
1123
- - true, if the search is refined by a category, false otherwise.
1124
-
1125
-
1126
- ---
1127
-
1128
- ### isRefinedByPrice()
1129
- - isRefinedByPrice(): [Boolean](TopLevel.Boolean.md)
1130
- - : Identifies if this search has been refined by price.
1131
-
1132
- **Returns:**
1133
- - True if the search is refined by price, false otherwise.
1134
-
1135
-
1136
- ---
1137
-
1138
- ### isRefinedByPriceRange(Number, Number)
1139
- - isRefinedByPriceRange(priceMin: [Number](TopLevel.Number.md), priceMax: [Number](TopLevel.Number.md)): [Boolean](TopLevel.Boolean.md)
1140
- - : Identifies if this search has been refined by the given price range.
1141
- Either range parameters may be null to represent open ranges.
1142
-
1143
-
1144
- **Parameters:**
1145
- - priceMin - The lower bound of the price range.
1146
- - priceMax - The upper bound of the price range.
1147
-
1148
- **Returns:**
1149
- - True if the search is refinemd on the given price range, false
1150
- otherwise.
1151
-
1152
-
1153
-
1154
- ---
1155
-
1156
- ### isRefinedByPromotion()
1157
- - isRefinedByPromotion(): [Boolean](TopLevel.Boolean.md)
1158
- - : Identifies if this search has been refined by promotion.
1159
-
1160
- **Returns:**
1161
- - True if the search is refined by promotion, false otherwise.
1162
-
1163
-
1164
- ---
1165
-
1166
- ### isRefinedByPromotion(String)
1167
- - isRefinedByPromotion(promotionID: [String](TopLevel.String.md)): [Boolean](TopLevel.Boolean.md)
1168
- - : Identifies if this search has been refined by a given promotion.
1169
-
1170
- **Parameters:**
1171
- - promotionID - the ID of the promotion to check
1172
-
1173
- **Returns:**
1174
- - True if the search is refined by the given promotionID, false otherwise.
1175
-
1176
-
1177
- ---
1178
-
1179
- ### isRefinedCategorySearch()
1180
- - isRefinedCategorySearch(): [Boolean](TopLevel.Boolean.md)
1181
- - : Identifies if this is a category search and is refined with further
1182
- criteria, like a brand refinement or an attribute refinement.
1183
-
1184
-
1185
- **Returns:**
1186
- - true if this is a category search and is refined with further
1187
- criteria, false otherwise.
1188
-
1189
-
1190
-
1191
- ---
1192
-
1193
- ### isTrackingEmptySearchesEnabled()
1194
- - isTrackingEmptySearchesEnabled(): [Boolean](TopLevel.Boolean.md)
1195
- - : The method indicates if no-hits search should be tracked for predictive intelligence use.
1196
-
1197
- **Returns:**
1198
- - true, if no-hits search should be tracked, otherwise false.
1199
-
1200
-
1201
- ---
1202
-
1203
- ### isVisualSearch()
1204
- - isVisualSearch(): [Boolean](TopLevel.Boolean.md)
1205
- - : The method returns true, if this is a visual search. The
1206
- method checks that a image UUID is specified.
1207
-
1208
-
1209
- **Returns:**
1210
- - True if this is a visual search
1211
-
1212
-
1213
- ---
1214
-
1215
- ### search()
1216
- - search(): [SearchStatus](dw.system.SearchStatus.md)
1217
- - : Execute the search based on the configured search term, category and filter conditions (price, attribute,
1218
- promotion, product type) and return the execution status. The execution of an empty ProductSearchModel without
1219
- any search term or filter criteria will not be supported and the search status [SearchStatus.EMPTY_QUERY](dw.system.SearchStatus.md#empty_query)
1220
- will be returned. A usage of the internal category id 'root' as category filter is not recommended, could cause
1221
- performance issues and will be potentially deprecated in a future release. A successful execution will be
1222
- indicated by [SearchStatus.SUCCESSFUL](dw.system.SearchStatus.md#successful) or [SearchStatus.LIMITED](dw.system.SearchStatus.md#limited). For other possible search
1223
- statuses see [SearchStatus](dw.system.SearchStatus.md). The sorted and grouped search result of a successful execution can be fetched
1224
- via [getProductSearchHits()](dw.catalog.ProductSearchModel.md#getproductsearchhits) and the refinement options based on the search result can be obtained via
1225
- [getRefinements()](dw.catalog.ProductSearchModel.md#getrefinements) and [SearchModel.getRefinementValues(String)](dw.catalog.SearchModel.md#getrefinementvaluesstring).
1226
-
1227
-
1228
- **Returns:**
1229
- - the searchStatus object with search status code and description of search result.
1230
-
1231
-
1232
- ---
1233
-
1234
- ### setCategoryID(String)
1235
- - setCategoryID(categoryID: [String](TopLevel.String.md)): void
1236
- - : Specifies the category id used for the search query.
1237
-
1238
- **Parameters:**
1239
- - categoryID - the category id for the search query.
1240
-
1241
-
1242
- ---
1243
-
1244
- ### setEnableTrackingEmptySearches(Boolean)
1245
- - setEnableTrackingEmptySearches(trackingEmptySearches: [Boolean](TopLevel.Boolean.md)): void
1246
- - : Set a flag indicating whether no-hits search should be tracked for predictive intelligence use.
1247
-
1248
- **Parameters:**
1249
- - trackingEmptySearches - true, no-hits search should be tracked, false, otherwise.
1250
-
1251
-
1252
- ---
1253
-
1254
- ### setInventoryListIDs(List)
1255
- - setInventoryListIDs(inventoryListIDs: [List](dw.util.List.md)): void
1256
- - :
1257
-
1258
- Specifies multiple inventory list IDs used for the search query. The method supports up to
1259
- [MAXIMUM_INVENTORY_LIST_IDS](dw.catalog.ProductSearchModel.md#maximum_inventory_list_ids) inventory IDs. If more than [MAXIMUM_INVENTORY_LIST_IDS](dw.catalog.ProductSearchModel.md#maximum_inventory_list_ids) inventory IDs
1260
- used the method throws an IllegalArgumentException.
1261
-
1262
-
1263
- **Parameters:**
1264
- - inventoryListIDs - the inventory IDs for the search query.
1265
-
1266
- **Throws:**
1267
- - IllegalArgumentException - if more than [MAXIMUM_INVENTORY_LIST_IDS](dw.catalog.ProductSearchModel.md#maximum_inventory_list_ids) inventory IDs used
1268
-
1269
-
1270
- ---
1271
-
1272
- ### setOrderableProductsOnly(Boolean)
1273
- - setOrderableProductsOnly(orderableOnly: [Boolean](TopLevel.Boolean.md)): void
1274
- - : Set a flag indicating whether unorderable products should be excluded
1275
- when the next call to getProducts() is made. This method overrides the
1276
- default behavior which is controlled by the search preference.
1277
-
1278
-
1279
- **Parameters:**
1280
- - orderableOnly - true if unorderable products should be excluded from product search results, false otherwise.
1281
-
1282
-
1283
- ---
1284
-
1285
- ### setPriceMax(Number)
1286
- - setPriceMax(priceMax: [Number](TopLevel.Number.md)): void
1287
- - : Sets the maximum price by which the search result is to be refined.
1288
-
1289
- **Parameters:**
1290
- - priceMax - sets the maximum price by which the search result is to be refined.
1291
-
1292
-
1293
- ---
1294
-
1295
- ### setPriceMin(Number)
1296
- - setPriceMin(priceMin: [Number](TopLevel.Number.md)): void
1297
- - : Sets the minimum price by which the search result is to be refined.
1298
-
1299
- **Parameters:**
1300
- - priceMin - the minimum price by which the search result is to be refined.
1301
-
1302
-
1303
- ---
1304
-
1305
- ### setProductID(String)
1306
- - ~~setProductID(productID: [String](TopLevel.String.md)): void~~
1307
- - : Specifies the product id used for the search query.
1308
-
1309
- **Parameters:**
1310
- - productID - the product id for the search query.
1311
-
1312
- **Deprecated:**
1313
- :::warning
1314
- Please use [setProductIDs(List)](dw.catalog.ProductSearchModel.md#setproductidslist) instead
1315
- :::
1316
-
1317
- ---
1318
-
1319
- ### setProductIDs(List)
1320
- - setProductIDs(productIDs: [List](dw.util.List.md)): void
1321
- - : Specifies multiple product IDs used for the search query. The specified product IDs include, but not limited to,
1322
- variant product IDs, product master IDs, variation group IDs, product set IDs, or product bundle IDs. For
1323
- example, this API could be used in high-traffic pages where developers need to be able to filter quickly for only
1324
- available child products of a specified master product, instead of looping through all variants of a set products
1325
- and checking their availabilities. The method supports up to [MAXIMUM_PRODUCT_IDS](dw.catalog.ProductSearchModel.md#maximum_product_ids) product IDs. If more
1326
- than [MAXIMUM_PRODUCT_IDS](dw.catalog.ProductSearchModel.md#maximum_product_ids) products IDs are passed, the method throws an IllegalArgumentException.
1327
-
1328
-
1329
- **Parameters:**
1330
- - productIDs - the product IDs for the search query.
1331
-
1332
- **Throws:**
1333
- - IllegalArgumentException - if more than [MAXIMUM_PRODUCT_IDS](dw.catalog.ProductSearchModel.md#maximum_product_ids) product IDs used
1334
-
1335
-
1336
- ---
1337
-
1338
- ### setPromotionID(String)
1339
- - setPromotionID(promotionID: [String](TopLevel.String.md)): void
1340
- - : Specifies the promotion id used for the search query.
1341
-
1342
- **Parameters:**
1343
- - promotionID - the promotion id for the search query.
1344
-
1345
-
1346
- ---
1347
-
1348
- ### setPromotionIDs(List)
1349
- - setPromotionIDs(promotionIDs: [List](dw.util.List.md)): void
1350
- - : Specifies multiple promotion id's used for the search query. The method supports up to 30 promotion id's. If more
1351
- than 30 promotion id's used the method throws an IllegalArgumentException.
1352
-
1353
-
1354
- **Parameters:**
1355
- - promotionIDs - the promotion ids for the search query.
1356
-
1357
- **Throws:**
1358
- - IllegalArgumentException - if more than 30 promotion id's used
1359
-
1360
-
1361
- ---
1362
-
1363
- ### setPromotionProductType(String)
1364
- - setPromotionProductType(promotionProductType: [String](TopLevel.String.md)): void
1365
- - : Specifies the promotion product type used for the search query. This
1366
- value is only relevant for searches by promotion ID.
1367
-
1368
-
1369
- **Parameters:**
1370
- - promotionProductType - The type of product to filter by when searching by promotion ID. Allowed values are PROMOTION\_PRODUCT\_TYPE\_ALL, PROMOTION\_PRODUCT\_TYPE\_BONUS, PROMOTION\_PRODUCT\_TYPE\_QUALIFYING, and PROMOTION\_PRODUCT\_TYPE\_DISCOUNTED. If null is passed, or an invalid value is passed, the search will use PROMOTION\_PRODUCT\_TYPE\_ALL.
1371
-
1372
-
1373
- ---
1374
-
1375
- ### setRecursiveCategorySearch(Boolean)
1376
- - setRecursiveCategorySearch(recurse: [Boolean](TopLevel.Boolean.md)): void
1377
- - : Set a flag to indicate if the search in category should be recursive.
1378
-
1379
- **Parameters:**
1380
- - recurse - recurse the category in the search
1381
-
1382
-
1383
- ---
1384
-
1385
- ### setRefinementCategory(Category)
1386
- - setRefinementCategory(refinementCategory: [Category](dw.catalog.Category.md)): void
1387
- - : Sets an explicit category to be used when determining refinements. If this is not done, they will be determined based on the deepest common category of all search results.
1388
- The explicit category must be in the site's storefront catalog, otherwise the method fails with an IllegalArgumentException.
1389
-
1390
-
1391
- **Parameters:**
1392
- - refinementCategory - the category used to determine the applicable refinements.
1393
-
1394
- **Throws:**
1395
- - IllegalArgumentException - if the refinement category does not reside in the storefront catalog
1396
-
1397
-
1398
- ---
1399
-
1400
- ### setSearchableImageID(String)
1401
- - setSearchableImageID(imageID: [String](TopLevel.String.md)): void
1402
- - : An image ID can be retrieved by uploading an image with a multipart/form-data POST
1403
- request to 'https://api.cquotient.com/v3/image/search/upload/{siteID}'. This method sets product IDs retrieved
1404
- from the image ID to the ProductSearchModel. If using [setProductIDs(List)](dw.catalog.ProductSearchModel.md#setproductidslist) in addition to this method,
1405
- the ProductSearchModel will take the intersection of these sets of product IDs. If the image ID provided is
1406
- invalid or expired, product IDs will not be set onto the product search model.
1407
-
1408
-
1409
- **Parameters:**
1410
- - imageID - the image ID for the visual search query.
1411
-
1412
- **Throws:**
1413
- - RuntimeException - if product IDs for the provided image could not be set.
1414
-
1415
-
1416
- ---
1417
-
1418
- ### setSortingCondition(String, Number)
1419
- - ~~setSortingCondition(attributeID: [String](TopLevel.String.md), direction: [Number](TopLevel.Number.md)): void~~
1420
- - : Sets or removes a sorting condition for the specified attribute. Specify
1421
- either SORT\_DIRECTION\_ASCENDING or SORT\_DIRECTION\_DESCENDING to set a
1422
- sorting condition. Specify SORT\_DIRECTION\_NONE to remove a sorting
1423
- condition from the attribute.
1424
-
1425
-
1426
- **Parameters:**
1427
- - attributeID - the attribute ID
1428
- - direction - SORT\_DIRECTION\_ASCENDING, SORT\_DIRECTION\_DESCENDING or SORT\_DIRECTION\_NONE
1429
-
1430
- **Deprecated:**
1431
- :::warning
1432
- This method is subject to removal. Use [setSortingRule(SortingRule)](dw.catalog.ProductSearchModel.md#setsortingrulesortingrule) instead.
1433
- :::
1434
-
1435
- ---
1436
-
1437
- ### setSortingOption(SortingOption)
1438
- - setSortingOption(option: [SortingOption](dw.catalog.SortingOption.md)): void
1439
- - : Sets the sorting option to be used to order the products in the results of this query.
1440
- If a sorting rule is also set, the sorting option is ignored.
1441
-
1442
-
1443
- **Parameters:**
1444
- - option - the SortingOption to use to sort the products
1445
-
1446
-
1447
- ---
1448
-
1449
- ### setSortingRule(SortingRule)
1450
- - setSortingRule(rule: [SortingRule](dw.catalog.SortingRule.md)): void
1451
- - : Sets the sorting rule to be used to order the products in the
1452
- results of this query. Setting the rule in this way overrides the
1453
- default behavior of choosing the sorting rule based on the context of the
1454
- search, such as the refinement category.
1455
-
1456
-
1457
- **Parameters:**
1458
- - rule - the SortingRule to use to sort the products
1459
-
1460
-
1461
- ---
1462
-
1463
- ### setStoreInventoryFilter(StoreInventoryFilter)
1464
- - setStoreInventoryFilter(storeInventoryFilter: [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md)): void
1465
- - :
1466
-
1467
- Filters the search result by one or more inventory list IDs provided by the class [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md)
1468
- which supports a semantic URL parameter like zip, city, store ... and a list of [StoreInventoryFilterValue](dw.catalog.StoreInventoryFilterValue.md)
1469
- which maps the semantic inventory list id value like Burlington, Boston, ... to a real inventory list id like
1470
- 'Burlington -> inventory1', 'Boston -> inventory2'. The search will filter the result by the real inventory list
1471
- id(s) but will use the semantic URL parameter and semantic inventory list id values for URL generation via all
1472
- URLRefine and URLRelax methods e.g. for [urlRefineCategory(URL, String)](dw.catalog.ProductSearchModel.md#urlrefinecategoryurl-string), [urlRelaxPrice(URL)](dw.catalog.ProductSearchModel.md#urlrelaxpriceurl),
1473
- [SearchModel.urlRefineAttribute(String, String, String)](dw.catalog.SearchModel.md#urlrefineattributestring-string-string).
1474
-
1475
-
1476
- Example custom URL: city=Burlington|Boston
1477
-
1478
-
1479
-
1480
- ```
1481
- var storeFilter = new dw.catalog.StoreInventoryFilter("city",
1482
- new dw.util.ArrayList(
1483
- new dw.catalog.StoreInventoryFilterValue("Burlington","inventory_store_store9"),
1484
- new dw.catalog.StoreInventoryFilterValue("Boston","inventory_store_store8")
1485
- ));
1486
- searchModel.setStoreInventoryFilter(filter)
1487
- ```
1488
-
1489
-
1490
- **Parameters:**
1491
- - storeInventoryFilter - The [StoreInventoryFilter](dw.catalog.StoreInventoryFilter.md) instance to filter the search result by one or more inventory IDs with semantic key and semantic value support.
1492
-
1493
- **Throws:**
1494
- - IllegalArgumentException - if more than [MAXIMUM_STORE_INVENTORY_FILTER_VALUES](dw.catalog.ProductSearchModel.md#maximum_store_inventory_filter_values) filter values used
1495
-
1496
-
1497
- ---
1498
-
1499
- ### urlForCategory(URL, String)
1500
- - static urlForCategory(url: [URL](dw.web.URL.md), cgid: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1501
- - : Constructs a URL that you can use to execute a query for a specific
1502
- Category. The search specific parameters are appended to the provided
1503
- URL. The URL is typically generated with one of the URLUtils methods.
1504
-
1505
-
1506
- **Parameters:**
1507
- - url - the URL to use to generate the new URL.
1508
- - cgid - the category ID.
1509
-
1510
- **Returns:**
1511
- - the new URL.
1512
-
1513
-
1514
- ---
1515
-
1516
- ### urlForCategory(String, String)
1517
- - static urlForCategory(action: [String](TopLevel.String.md), cgid: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1518
- - : Constructs a URL that you can use to execute a query for a specific
1519
- Category.
1520
-
1521
- The generated URL will be an absolute URL which uses the protocol of
1522
- the current request.
1523
-
1524
-
1525
- **Parameters:**
1526
- - action - pipeline action, e.g. 'Search-Show'.
1527
- - cgid - the category ID.
1528
-
1529
- **Returns:**
1530
- - the new URL.
1531
-
1532
-
1533
- ---
1534
-
1535
- ### urlForProduct(URL, String, String)
1536
- - static urlForProduct(url: [URL](dw.web.URL.md), cgid: [String](TopLevel.String.md), pid: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1537
- - : Constructs a URL that you can use to execute a query for a specific
1538
- Product. The passed url can be either a full url or just the name for a
1539
- pipeline. In the later case a relative URL is created.
1540
-
1541
-
1542
- **Parameters:**
1543
- - url - the URL to use to generate the new URL.
1544
- - cgid - the category id or null if product is not in category context.
1545
- - pid - the product id.
1546
-
1547
- **Returns:**
1548
- - the new URL.
1549
-
1550
-
1551
- ---
1552
-
1553
- ### urlForProduct(String, String, String)
1554
- - static urlForProduct(action: [String](TopLevel.String.md), cgid: [String](TopLevel.String.md), pid: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1555
- - : Constructs a URL that you can use to execute a query for a specific
1556
- Product. The passed action is used to build an initial url. All search
1557
- specific attributes are appended.
1558
-
1559
- The generated URL will be an absolute URL which uses the protocol of
1560
- the current request.
1561
-
1562
-
1563
- **Parameters:**
1564
- - action - pipeline action, e.g. 'Search-Show'.
1565
- - cgid - the category id or null if product is not in category context.
1566
- - pid - the product id.
1567
-
1568
- **Returns:**
1569
- - the new URL.
1570
-
1571
-
1572
- ---
1573
-
1574
- ### urlForRefine(URL, String, String)
1575
- - static urlForRefine(url: [URL](dw.web.URL.md), attributeID: [String](TopLevel.String.md), value: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1576
- - : Constructs a URL that you can use to execute a query for a specific
1577
- attribute name-value pair. The search specific parameters are appended to
1578
- the provided URL. The URL is typically generated with one of the URLUtils
1579
- methods.
1580
-
1581
-
1582
- **Parameters:**
1583
- - url - the URL to use to generate the new URL.
1584
- - attributeID - the attribute ID for the refinement.
1585
- - value - the attribute value for the refinement.
1586
-
1587
- **Returns:**
1588
- - the new URL.
1589
-
1590
-
1591
- ---
1592
-
1593
- ### urlForRefine(String, String, String)
1594
- - static urlForRefine(action: [String](TopLevel.String.md), attributeID: [String](TopLevel.String.md), value: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1595
- - : Constructs a URL that you can use to execute a query for a specific
1596
- attribute name-value pair.
1597
-
1598
- The generated URL will be an absolute URL which uses the protocol of
1599
- the current request.
1600
-
1601
-
1602
- **Parameters:**
1603
- - action - pipeline action, e.g. 'Search-Show'.
1604
- - attributeID - the attribute ID for the refinement.
1605
- - value - the attribute value for the refinement.
1606
-
1607
- **Returns:**
1608
- - the new URL.
1609
-
1610
-
1611
- ---
1612
-
1613
- ### urlRefineCategory(URL, String)
1614
- - urlRefineCategory(url: [URL](dw.web.URL.md), refineCategoryID: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1615
- - : Constructs a URL that you can use to re-execute the query with a
1616
- category refinement. The search specific parameters are appended to the
1617
- provided URL. The URL is typically generated with one of the URLUtils
1618
- methods.
1619
-
1620
-
1621
- **Parameters:**
1622
- - url - the existing URL to use to create the new URL.
1623
- - refineCategoryID - the ID of the category.
1624
-
1625
- **Returns:**
1626
- - the new URL.
1627
-
1628
-
1629
- ---
1630
-
1631
- ### urlRefineCategory(String, String)
1632
- - urlRefineCategory(action: [String](TopLevel.String.md), refineCategoryID: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1633
- - : Constructs a URL that you can use to re-execute the query with a
1634
- category refinement.
1635
-
1636
- The generated URL will be an absolute URL which uses the protocol of
1637
- the current request.
1638
-
1639
-
1640
- **Parameters:**
1641
- - action - the pipeline action, e.g. 'Search-Show'
1642
- - refineCategoryID - the ID of the category.
1643
-
1644
- **Returns:**
1645
- - the new URL.
1646
-
1647
-
1648
- ---
1649
-
1650
- ### urlRefinePrice(URL, Number, Number)
1651
- - urlRefinePrice(url: [URL](dw.web.URL.md), min: [Number](TopLevel.Number.md), max: [Number](TopLevel.Number.md)): [URL](dw.web.URL.md)
1652
- - : Constructs a URL that you can use to re-execute the query with an
1653
- additional price filter. The search specific parameters are appended to
1654
- the provided URL. The URL is typically generated with one of the URLUtils
1655
- methods.
1656
-
1657
-
1658
- **Parameters:**
1659
- - url - the URL to use to generate the new URL.
1660
- - min - the minimum price.
1661
- - max - the maximum price.
1662
-
1663
- **Returns:**
1664
- - the new URL.
1665
-
1666
-
1667
- ---
1668
-
1669
- ### urlRefinePrice(String, Number, Number)
1670
- - urlRefinePrice(action: [String](TopLevel.String.md), min: [Number](TopLevel.Number.md), max: [Number](TopLevel.Number.md)): [URL](dw.web.URL.md)
1671
- - : Constructs a URL that you can use to re-execute the query with an
1672
- additional price filter.
1673
-
1674
- The generated URL will be an absolute URL which uses the protocol of
1675
- the current request.
1676
-
1677
-
1678
- **Parameters:**
1679
- - action - the pipeline action, e.g. 'Search-Show'.
1680
- - min - the minimum price.
1681
- - max - the maximum price.
1682
-
1683
- **Returns:**
1684
- - the new URL.
1685
-
1686
-
1687
- ---
1688
-
1689
- ### urlRefinePromotion(URL, String)
1690
- - urlRefinePromotion(url: [URL](dw.web.URL.md), refinePromotionID: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1691
- - : Constructs a URL that you can use to re-execute the query with a promotion refinement. The search specific
1692
- parameters are appended to the provided URL. The URL is typically generated with one of the URLUtils methods.
1693
-
1694
-
1695
- **Parameters:**
1696
- - url - the existing URL to use to create the new URL.
1697
- - refinePromotionID - the ID of the promotion.
1698
-
1699
- **Returns:**
1700
- - the new URL.
1701
-
1702
-
1703
- ---
1704
-
1705
- ### urlRefinePromotion(String, String)
1706
- - urlRefinePromotion(action: [String](TopLevel.String.md), refinePromotionID: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1707
- - : Constructs a URL that you can use to re-execute the query with a promotion refinement. The generated URL will be
1708
- an absolute URL which uses the protocol of the current request.
1709
-
1710
-
1711
- **Parameters:**
1712
- - action - the pipeline action, e.g. 'Search-Show'
1713
- - refinePromotionID - the ID of the promotion.
1714
-
1715
- **Returns:**
1716
- - the new URL.
1717
-
1718
-
1719
- ---
1720
-
1721
- ### urlRelaxCategory(URL)
1722
- - urlRelaxCategory(url: [URL](dw.web.URL.md)): [URL](dw.web.URL.md)
1723
- - : Constructs a URL that you can use to re-execute the query without any
1724
- category refinement. The search specific parameters are appended to the
1725
- provided URL. The URL is typically generated with one of the URLUtils
1726
- methods.
1727
-
1728
-
1729
- **Parameters:**
1730
- - url - the existing URL to use to create the new URL.
1731
-
1732
- **Returns:**
1733
- - the new URL.
1734
-
1735
-
1736
- ---
1737
-
1738
- ### urlRelaxCategory(String)
1739
- - urlRelaxCategory(action: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1740
- - : Constructs a URL that you can use to re-execute the query without any
1741
- category refinement.
1742
-
1743
- The generated URL will be an absolute URL which uses the protocol of
1744
- the current request.
1745
-
1746
-
1747
- **Parameters:**
1748
- - action - the pipeline action, e.g. 'Search-Show'.
1749
-
1750
- **Returns:**
1751
- - the new URL.
1752
-
1753
-
1754
- ---
1755
-
1756
- ### urlRelaxPrice(URL)
1757
- - urlRelaxPrice(url: [URL](dw.web.URL.md)): [URL](dw.web.URL.md)
1758
- - : Constructs a URL that you can use to would re-execute the query with no
1759
- price filter. The search specific parameters are appended to the provided
1760
- URL. The URL is typically generated with one of the URLUtils methods.
1761
-
1762
-
1763
- **Parameters:**
1764
- - url - the existing URL to use to create the new URL.
1765
-
1766
- **Returns:**
1767
- - the new URL.
1768
-
1769
-
1770
- ---
1771
-
1772
- ### urlRelaxPrice(String)
1773
- - urlRelaxPrice(action: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1774
- - : Constructs a URL that you can use to re-execute the query with no price
1775
- filter.
1776
-
1777
- The generated URL will be an absolute URL which uses the protocol of
1778
- the current request.
1779
-
1780
-
1781
- **Parameters:**
1782
- - action - the pipeline action, e.g. 'Search-Show'
1783
-
1784
- **Returns:**
1785
- - the new URL.
1786
-
1787
-
1788
- ---
1789
-
1790
- ### urlRelaxPromotion(URL)
1791
- - urlRelaxPromotion(url: [URL](dw.web.URL.md)): [URL](dw.web.URL.md)
1792
- - : Constructs a URL that you can use to re-execute the query without any promotion refinement. The search specific
1793
- parameters are appended to the provided URL. The URL is typically generated with one of the URLUtils methods.
1794
-
1795
-
1796
- **Parameters:**
1797
- - url - the existing URL to use to create the new URL.
1798
-
1799
- **Returns:**
1800
- - the new URL.
1801
-
1802
-
1803
- ---
1804
-
1805
- ### urlRelaxPromotion(String)
1806
- - urlRelaxPromotion(action: [String](TopLevel.String.md)): [URL](dw.web.URL.md)
1807
- - : Constructs a URL that you can use to re-execute the query without any promotion refinement. The generated URL
1808
- will be an absolute URL which uses the protocol of the current request.
1809
-
1810
-
1811
- **Parameters:**
1812
- - action - the pipeline action, e.g. 'Search-Show'.
1813
-
1814
- **Returns:**
1815
- - the new URL.
1816
-
1817
-
1818
- ---
1819
-
1820
- ### urlSortingOption(URL, SortingOption)
1821
- - urlSortingOption(url: [URL](dw.web.URL.md), option: [SortingOption](dw.catalog.SortingOption.md)): [URL](dw.web.URL.md)
1822
- - : Constructs a URL that you can use to re-execute the query but sort
1823
- the results by the given storefront sorting option. The search specific parameters are
1824
- appended to the provided URL. The URL is typically generated with one of
1825
- the URLUtils methods.
1826
-
1827
-
1828
- **Parameters:**
1829
- - url - the existing URL to use to create the new URL.
1830
- - option - sorting option
1831
-
1832
- **Returns:**
1833
- - the new URL.
1834
-
1835
-
1836
- ---
1837
-
1838
- ### urlSortingOption(String, SortingOption)
1839
- - urlSortingOption(action: [String](TopLevel.String.md), option: [SortingOption](dw.catalog.SortingOption.md)): [URL](dw.web.URL.md)
1840
- - : Constructs a URL that you can use to re-execute the query but sort the
1841
- results by the given storefront sorting option.
1842
-
1843
- The generated URL will be an absolute URL which uses the protocol of the
1844
- current request.
1845
-
1846
-
1847
- **Parameters:**
1848
- - action - the pipeline action, e.g. 'Search-Show'.
1849
- - option - sorting option
1850
-
1851
- **Returns:**
1852
- - the new URL.
1853
-
1854
-
1855
- ---
1856
-
1857
- ### urlSortingRule(URL, SortingRule)
1858
- - urlSortingRule(url: [URL](dw.web.URL.md), rule: [SortingRule](dw.catalog.SortingRule.md)): [URL](dw.web.URL.md)
1859
- - : Constructs a URL that you can use to re-execute the query but sort
1860
- the results by the given rule. The search specific parameters are
1861
- appended to the provided URL. The URL is typically generated with one of
1862
- the URLUtils methods.
1863
-
1864
-
1865
- **Parameters:**
1866
- - url - the existing URL to use to create the new URL.
1867
- - rule - sorting rule
1868
-
1869
- **Returns:**
1870
- - the new URL.
1871
-
1872
-
1873
- ---
1874
-
1875
- ### urlSortingRule(String, SortingRule)
1876
- - urlSortingRule(action: [String](TopLevel.String.md), rule: [SortingRule](dw.catalog.SortingRule.md)): [URL](dw.web.URL.md)
1877
- - : Constructs a URL that you can use to re-execute the query but sort the
1878
- results by the given rule.
1879
-
1880
- The generated URL will be an absolute URL which uses the protocol of the
1881
- current request.
1882
-
1883
-
1884
- **Parameters:**
1885
- - action - the pipeline action, e.g. 'Search-Show'.
1886
- - rule - sorting rule
1887
-
1888
- **Returns:**
1889
- - the new URL.
1890
-
1891
-
1892
- ---
1893
-
1894
- <!-- prettier-ignore-end -->