Gravatar for jthai@absolute.com

Question by jthai, Jan 28, 2015 12:47 PM

What ranking weights are used when a facet is used to filter results

We are currently using facets for our Coveo search and wish to understand how the search results are ranked. If there are no keywords, title or description information, does Coveo rank by modified date?

For example, if we have three facets (blue, green, red) and when we select 'blue' and all items have been tagged with the color 'blue' and there are no keywords and 'blue' is not content and it not used in the title or description. How does Coveo rank the results? Modified Date??

1 Reply
Gravatar for dlavoie@coveo.com

Answer by Daniel Lavoie, Jan 28, 2015 1:14 PM

When ranking documents, in addition to terms, many other factors are considered:
1. Document date
2. Query Ranking Expressions
3. Preferred Language set on the query parameters (for example, english documents if you set english as your preferred language)
4. Source reputation (it's a config setting on the source, inside CES configuration)

In your case, the document date and language must be the most influential factors, if you don't use any Query Ranking Expressions and have sources with equal reputation in the configuration.

Gravatar for dmacaulay@absolute.com

Comment by don, Feb 4, 2015 5:55 PM

What is the name of the field in Coveo used for Document date, and can this date be replaced with a custom date managed in Sitecore?

Gravatar for slangevin@coveo.com

Comment by Simon, Feb 6, 2015 9:46 AM

@sysdate

You can replace it by a custom field. But for what exactly? You can add custom sorting on your page:

https://developers.coveo.com/display/public/SC201501/Sort+Components

Or a facet?

Gravatar for klutz@absolute.com

Comment by krislutz, Feb 11, 2015 7:36 PM

Sorting by a custom date works fine but this is for results by relevance. We would like to use our own custom date field to affect the relevance (ranking) of the results instead of the default updated date.

Gravatar for dlavoie@coveo.com

Comment by Daniel Lavoie, Feb 13, 2015 8:17 AM

I will give you 3 options to achieve what you want: - Override the document's modified date with your custom date using a conversion script (DocumentInfo.Date). Ranking will use the new one. - Use a ranking function, that would simply be @customdate, making sure to set NormalizeWeight to true. - Use an array of query ranking expressions, boosting ranges of dates.

If you use option 2 or 3, it might make sense to go in the CES administration tool (http://server/Index/Ranking/Ranking.aspx?sm=RankingWeights) and decrease Document modified recently to a lower value.

Ask a question