AI OnAI Off
Hi,
Why do you want 10 hits when searching for the home page? If you get a hit on the home page, it should only show up once in the search result. Are you sure the home page is indexed and searchable at all?
Hi Johan petersson,
Thanks for your reply,my requirement is how many times the user visited the home page, but am unable to get visited page count.
Thanks,
Kartheek.
So Episerver Find has nothing to do with visitor statistics, it's a search engine. You have to implement statistics yourself, either completely custom or by using e.g. Google Analytics. The Google Analytics Add-on might help you https://world.episerver.com/add-ons/google-analytics-for-episerver/.
Hi Guys,
I want to number of page hits based on pagename search in find concept,for example i created home page and i naviageted to 10 times. in find page i have one text box and search button,when i type "Home" and press the search button, i want hits=10 but i get 0 only this is the my findcontroller.cs code.
public ActionResult Index(FindSearchPage currentPage, string q = "",int page=1)
{
var model = new FindViewModel(currentPage,q);
ITypeSearch query = SearchClient.Instance.UnifiedSearchFor(q);
int pageSize = 10;
var skipNumber = 0;
if (page > 0)
skipNumber = (page - 1) * pageSize;
var unifiedSearch = SearchClient.Instance.UnifiedSearchFor(q).Skip(skipNumber).Take(pageSize);
model.Results = unifiedSearch.GetResult();
return View(model);
}
From model.Results i get the 0 hits.
Note: i created one visitor group and find inex job from the admin module.
Thanks,
Kartheek