Gravatar for

Question by Sathis, Aug 20, 2015 11:04 AM

Coveo Top Result

when i set one of the coveo indexed document into top result for the particular keyword. The TOP result document is always appear even when i search the another collection with the same keyword.

I want to display the TOP result document with respect to collection. Any one have idea on this issue?

Gravatar for

Comment by Jean-François L'Heureux, Aug 20, 2015 12:55 PM

Can you explain your setup in more details please?

  • What version of Coveo for Sitecore do you use?
  • What are your collection names?
  • Describe your top results configuration (which results are associated with which collections and which keywords).


Gravatar for

Comment by Sathis, Aug 20, 2015 1:03 PM

In this project, i am not using coveo for sitecore. directly consuming the results from CES 7.0 using .net front end server REST api.

I have diffrent set of collection in CES and setting the TOP results in CES index browser. I am using REST api query by applying the syscollection filter to get the result from particular collection.

2 Replies
Gravatar for

Answer by ronald, Aug 20, 2015 2:58 PM

After adding documents to Top Results in the Admin Tool, for search queries to show them with respect to their associated collection, the query received by the index server must have a collection filter in its advanced query parameters. That's what the .NET UI does when the user expands the Advanced Search panel and selects/unselects collection check-boxes.

Top Results do not take textual collection filter (e.g. @syscollection=xyz) into account. As of today, via the REST API, it is not possible to specify collection filters in the advanced query parameters sent to the index.

Gravatar for

Answer by Chris Ruderschmidt, Aug 26, 2015 4:03 PM

Using .CoveoBoost() from Coveo.SearchProvider.LinqBase LINQ extentions may help.

Something along the lines of this:

queryable.CoveoBoost(item => item["collection"] == "value", 200).Tolist();

Hope this helps!

Gravatar for

Comment by Sathis, Aug 27, 2015 5:44 AM

Thanks for your response. But the problem here is, we are not using coveo for sitecore.

Ask a question