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.html
or where you might access the admin site swagger. - Authorize.
-
Go to
POST /api/segments
with request body -
To ingest products, go to
PUT /api/ingestion/segments/{segmentId}/products/bulk
with segmentIdb2c-en-test
and request body -
To ingest SKUs, go to
PUT /api/ingestion/segments/{segmentId}/skus/bulk
with segmentIdb2c-en-test
and 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 /products
with 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/parameters
or where you might access the admin site - Add a new parameter with id
seasonal
, nameSeasonal
and typeTerm
- Create partition with id
winter
, nameWinter
and termwinter
- Go to
https://ecommercesearch.bzk.hdk/sort/contexts
- Click on the Fallback context
- Click
Parameters
- Click
ADD PARAMETER
- Choose
Seasonal
- Type
1000
intoWinter
- Comfy socks should now have a boost score of 1000
- Click
SAVE
Contexts can be used for many things, boosting seasonal products is just one example. To understand how contexts 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.