Add search by creating an index over the API
Create the index with its searchable and filterable fields, then add each product to it as a document with its own ID. Conjoin hosts the index, so these two calls are the whole setup.
Impact
The sample creates the Foilmark Apparel catalog index, with the title, the description, and the tags as searchable fields, and adds the storm shell parka to it. Shoppers can then filter results by category, price, or stock, because the sample declares those fields as filterable.
Prompt for a coding agent: Create a searchable catalog that shoppers can filter by category, price, and stock.
Select a file to view its contents