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?
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.
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!