Getting started
The aim of this article is to help developers get started developing integrations with Ecommerce Search.
Ingesting products
It is not possible to do any searching without any products. So the first step is to ingest products into the system. This can be done using the SDK or with plain HTTP. A more detailed description of ingesting products can be found here, but to simply ingest some products to start working, it is enough to interact with swagger. See the full API reference here.
- Go to
https://ecommercesearch.bzk.hdk/swagger/index.htmlor where you might access the admin site swagger. - Authorize.
-
Go to
POST /api/segmentswith request body -
To ingest products, go to
PUT /api/ingestion/segments/{segmentId}/products/bulkwith segmentIdb2c-en-testand request body -
To ingest SKUs, go to
PUT /api/ingestion/segments/{segmentId}/skus/bulkwith segmentIdb2c-en-testand request body
Searching for products
Now that products have been ingested, it is possible to search for them.
- To go
https://search.bzk.hdk/swagger/or where you might access the search api. See the full search API reference here. - Go to
POST /productswith request body
You should see two products. In order to affect the data returned in these products, you can make changes to the scope. You can also do a search for
You should then only see one product.
Commercial sorting
When the SKUs were ingested, the comfy socks had a commercial parameter of being seasonal for winter. Commercial sorting can give products that are suited for winter a boost.
- Go to
https://ecommercesearch.bzk.hdk/sort/parametersor where you might access the admin site - Add a new parameter with id
seasonal, nameSeasonaland typeTerm - Create partition with id
winter, nameWinterand termwinter - Go to
https://ecommercesearch.bzk.hdk/discover/experiences - Click on the Fallback experience
- Click
Parameters - Click
ADD PARAMETER - Choose
Seasonal - Type
1000intoWinter - Comfy socks should now have a boost score of 1000
- Click
SAVE
Experiences can be used for many things, boosting seasonal products is just one example. To understand how experiences work, read about them here.
Next steps
Ecommerce Search provides several other interesting features to get started with. Have a look at the dashboard, or maybe diagnostics.
To get a better understanding of some of the fundamental pieces of Ecommerce Search, read more about products, segments, text analysis and of course search.