Setting the boost factor through the data feed

or send an email to support@doofinder.com

You can set the boost factor for every product in your data feed directly. In this article we are going to explain how to do this.

Note that if you manually modify the boost factor in the doofinder admin, it will be overwritten by the values you set in the data feed, so you have to choose between setting them manually or setting them through the data feed.

Important: The boost field holds floating point values. Use always the dot (.) to separate the decimal part in the field.

Ok, let's see how to do it for every kind of feed format:

Text Format

All you have to do is just add a new key named boost adding the values for each row in the file. The values for the boost field must be decimal numbers like 1.2 or 3.73.

XML Format

First, you have to first add the doofinder namespace to the XML file.

So the RSS format first lines will be like this:

<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0' xmlns:g='http://base.google.com/ns/1.0' xmlns:d='http://www.doofinder.com/ns/1.0'>

And the Atom format will start like this:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0" xmlns:d='http://www.doofinder.com/ns/1.0'>

After that, you can add now the corresponding tags for the boost value for every product, that will be something like this:

<d:boost>2.32</d:boost>

Below you can download some examples to see how it works.