Domanda

In my Visual Web Part I need a KeywordQuery to search Most Popular Pages. Also, filter the results for Pages only.

È stato utile?

Soluzione

I simply added a sort by

KeywordQuery kq = new KeywordQuery(site);
kq.SortList.Add("ViewsLifeTime", SortDirection.Descending)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top