Search Most Popular Pages with KeywordQuery
-
09-10-2020 - |
Pregunta
In my Visual Web Part I need a KeywordQuery to search Most Popular Pages. Also, filter the results for Pages only.
Solución
I simply added a sort by
KeywordQuery kq = new KeywordQuery(site);
kq.SortList.Add("ViewsLifeTime", SortDirection.Descending)
Licenciado bajo: CC-BY-SA con atribución
No afiliado a sharepoint.stackexchange