Gravatar for jiazhang1015@yahoo.ca

Question by jia, Apr 21, 2016 4:21 PM

Is coveo server keep QRE score in history?

We have the requirement to rank search results base on each item's weighting and keep this increased score in history. I add QRE into queryBuilder.advancedExpression, it works only for this time query(ex: without qre, the score is 1000, with qre, the score is 1100=1000+10*10 (where 10 is weighting of this item). But next time, when I run same query , it still return 1100, but I want 1200.

How to let server keep the increased score in history?

Or how to use Custom ranking weight (CES Administration Tool http://localhost:8081/Index/Ranking/Ranking.aspx?sm=RankingWeights) for each item has own weight?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Apr 21, 2016 4:35 PM

Hi,

Coveo do not keep the search result scores for queries. Thus, it is not possible to have an increased score query after query as you are requesting.

To modify ranking weights on a query, you can use the $weight query extension of the Coveo Search API (see Standard Query Extensions).

Before you go further, can you describe why you have the requirement to have an increased score for search results each time a user do a new query? I don't see any use case where this would be a good idea.

Thank you,

Jeff

Gravatar for jiazhang1015@yahoo.ca

Comment by jia, Apr 22, 2016 9:27 AM

Hi Jeff,

Our requirement is to rank items base on per query, but each item has own weighting(we have many indexes, only one index needs this). So if an item is most popular, it should show at first.

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Apr 22, 2016 10:02 AM

Ok, you want to sort search results by popularity. And you want to calculate the popularity of a search result by the number of times it came in the search results of the users.

Adding one QRE per search result is a bit overkill in my opinion. Instead, you could use:

Ask a question