You can set the boost factor and/or indexed text 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 and/or indexed text 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.
boost field holds floating point values. Use always the dot (
.) to separate the decimal part in the field. For the indexed_text field you can use any regular text.
Ok, let's see how to do it for every kind of feed format:
All you have to do is just add a new key named
indexed_text and add the values for each row in the file. The values for the
boost field must be decimal numbers like
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 or indexed_text value for every product, that will be something like this:
<d:boost>2.32</d:boost> <d:indexed_text>I weight in the search , but I'm not shown whatsoever</d:indexed_text>
Below you can download some examples to see how it works.