Doofinder provides a product ‘indice’ by default through which you can group data with similar attributes.
It also allows you to create additional indices or completely replace the default product indice altogether.
To create an additional indice, follow these steps:
- On the left sidebar of the admin panel, go to Setup > Indices > Indices.
- By default, there is a product indice already created for you. To create another one, click on the +Add Indice button.
- A pop up will appear labelled New Indice. There are two predefined types of information from this pop-up that you can select to index. That is:
- Products sold in a store; or
- Other kind of data.
- Here you can create relevant indices. For instance, say you want to index a dessert recipe, you will index it by giving it the name
- Do NOT use special characters or blank spaces to separate words. Instead, use the underscore character ( _ ).
- Also, the indice name is case sensitive and should always be in lowercase.
Once you have your new indice set up, you only need to add a feed to it and save it through any of the suggested options in the drop-down list of the Add Source buttons as indicated in the image below:
To remove an indice, there’s a Delete Indice button on the right-hand side of each added indice.
⚠️ Warning: Use this button cautiously as it also deletes the data indexed in this indice. Once deleted, you cannot recover it!
Using Doofinder’s API Requests
You can also manage indices from your website using Doofinder’s API to request changes in your search engines. For more information on this, see Learn more about the Management API.
Combining Feeds and APIs
Doofinder, by default, processes your feeds daily.
That is just about enough for most sites that update their products overnight. However, if your e-commerce store manages stock on the fly, you may want to update or remove some products when they are out of stock or add new ones when you create them on your site.
This is very useful, especially when you have many documents in your search index. By combining feeds and APIs, you will not have to re-index all of them over and over, particularly when making just a few updates.
Through Doofinder’s APIs, you can perform single (or batch) operations to update certain documents in Doofinder. These updates will be applied to your search index immediately. This way, your data feed acts as the single source of truth such that each time it is processed, all the data in your index will be replaced by the contents of the feed, which Doofinder will then update with the latest content on your site.
⚠️ Warning: If you add items via API, process and outdate the data feed, your index will also be outdated. This will also affect you if you configure your feed to process the data automatically.
Switching between API and Feeds
Business can change, and the way you feed your search engines can also change. In addition, the way you add items to your search results may also need to change.
You can start working with your search engine by adding items via API and then change to a URL-based data feed. There’s no problem with that, but remember that you will lose all existing products when you process your file feed, including those indices, via API because you used the data feed as the source of truth.
📌 Note: If you plan on changing the way you feed your search engine, we strongly recommend that you begin with a new search engine and perform tests there before switching to the production environment. You might not need all the configurations you have already added to your old search engine.
Should you encounter any problems, please contact firstname.lastname@example.org
Last Updated: July, 2021