Try our conversational search powered by Generative AI!

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


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.



Edited, May 30, 2017 16:14


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?

Edited, May 31, 2017 16:05

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.



May 31, 2017 18:55

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

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.