Forum Discussion

Christian Enghaug's avatar
Christian Enghaug
Brass Contributor
Aug 26, 2016

Using search to display usage statistics in SPO

Hi all,

I'm looking into using seach api or just search web parts to display usage statistics like most popular/viewed articles in a publishing portal in SPO. When I look at the search schema I find some promising managed properties, as you can see at the bottom of this post.

First: 
From what I learn in this blog post, the Recent time period, as in ViewsRecent, is by default set to the last 14 days. Is that still the case in SPO? Is there a way to change this time period with CSOM?

Second:
Is there any documentations of these managed properties and usage? Is the number values returned in these properties realtime, or is the number populated by the crawler?

Third:
Is there any other approch i can do to display these types of usage data? I looked into the Office 365 Management Activity API but that does not seem to be suitable for this use case (?).

In search schema:



In search result:




Resources