Changing the default search type
The search type controls the search scope of different catalog entry types to be searched
and displayed in the storefront. It also controls the search operation that is used for multiple
keyword search terms such as the
AND
operator, OR
operator, and
exact match.
About this task
The default search type is 1000:
ANY (INCLUDE products, kits, bundles, category level
SKUs, EXCLUDE product level SKUs).
It can be set in the following locations:- In the search profile, which sets the default value and results in all REST requests to use the same value that is set for the profile.
- In the REST request, which overrides the default value, and any other value set at the profile level.
Procedure
-
Determine which search type you want to set by using the following table as a reference:
Option Description 0 ANY (INCLUDE products, kits, bundles, EXCLUDE product level SKUs, and category level SKUs) 1 EXACT (INCLUDE products, kits, bundles, EXCLUDE product level SKUs, and category level SKUs) 2 ALL (INCLUDE products, kits, bundles, EXCLUDE product level SKUs, and category level SKUs) 3 NONE (INCLUDE products, kits, bundles, EXCLUDE product level SKUs, and category level SKUs) 10 ANY (INCLUDE products, kits, bundles, product level SKUs, category level SKUs) 11 EXACT (INCLUDE products, kits, bundles, product level SKUs, category level SKUs) 12 ALL (INCLUDE products, kits, bundles, product level SKUs, category level SKUs) 13 NONE (INCLUDE products, kits, bundles, product level SKUs, category level SKUs) 100 ANY (INCLUDE product level SKUs, category level SKUs, EXCLUDE products, kits, bundles) 101 EXACT (INCLUDE product level SKUs, category level SKUs, EXCLUDE products, kits, bundles) 102 ALL (INCLUDE product level SKUs, category level SKUs, EXCLUDE products, kits, bundles) 103 NONE (INCLUDE product level SKUs, category level SKUs, EXCLUDE products, kits, bundles) 1000 ANY (INCLUDE products, kits, bundles, category level SKUs, EXCLUDE product level SKUs) 1001 EXACT (INCLUDE products, kits, bundles, category level SKUs, EXCLUDE product level SKUs) 1002 ALL (INCLUDE products, kits, bundles, category level SKUs, EXCLUDE product level SKUs) 1003 NONE (INCLUDE products, kits, bundles, category level SKUs, EXCLUDE product level SKUs) 10000 ANY (INCLUDE category level SKUs, EXCLUDE products, kits, bundles, product level SKUs) 10001 EXACT (INCLUDE category level SKUs, EXCLUDE products, kits, bundles, product level SKUs) 10002 ALL (INCLUDE category level SKUs, EXCLUDE products, kits, bundles, product level SKUs) 10003 NONE (INCLUDE category level SKUs, EXCLUDE products, kits, bundles, product level SKUs) Note:- ANY = combine search keywords with logical OR.
- ALL = combine search keywords with logical AND.
-
To change the default search type in the search profile:
-
To override the default search type in the REST request: