can anyone explain about basic text search concept with coding in "Find" Topic???

Vote:
 

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

#179053
Edited, May 30, 2017 16:14
Vote:
 

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?

#179115
Edited, May 31, 2017 16:05
Vote:
 

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.

#179121
May 31, 2017 18:55
Vote:
 

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/.

#179123
May 31, 2017 19:02
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.