Gravatar for

Question by Arun Sharma, Sep 27, 2017 10:43 AM

How change sorting/boosting order based on search term?

Hi Team,

I have previously asked how to boost programmatically based on template:

Now i have few more clarity on one scenario like below:

Like if I boost result based on template, now if I want boost based on any field as well like if my template order is: Bio->Service->Industry->Office

so result come in above order if someone search for any office like 'Atlanta' that also tagged on Bio, Service, Industry result come in same order but as user want to search office then i only wanna show 'Atlanta' office as first item.

Gravatar for

Comment by Sébastien Belzile, Sep 27, 2017 10:59 AM

Excuse me, but I am not sure about what your actual question is.

1 Reply
Gravatar for

Answer by Sébastien Belzile, Sep 27, 2017 11:08 AM

Ok. I read the other question. Correct me if I did not understand properly:

If you think that your users will want to search for an `Office` specifically, would it be a good idea to have a facet on the field `_templatename`? This way, the end user could specify that he is looking for an office.

Then, you can apply different boosting based on the selected facet value: if `office` is selected, add a boosting expression on your `OfficeTitle`. Although I don't think you need this last example as Coveo's ranking algorithm rank your items properly.

Ask a question