+1-888-365-2779
Try Now
More in this section

Forums / Suggestions / search logging

search logging

4 posts, 0 answered
  1. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    10 Nov 2008
    Link to this post
    I think it would be really helpful to have some kind of feature where search terms entered by users can be logged, specifically in the case that there are no results for the entered keywords.

    This will allow the site administrator to discover what terms visitors are using that result in blank results, and can add those keywords to the pages that users SHOULD be getting back as results.

    I've used google analytics to keep track what keywords are being used, but I can't see if there are results unless I do the search manually.
     
    I see there is an extensive API in the Lucene.net namespace but I'm not sure what events are available as it is quite a huge list of members. can anyone point me in the right direction?
     
    thanks!
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    13 Nov 2008
    Link to this post
    Hello SelArom,

    Here is what you could do:

    1. Create a user control, which is taking the Url query parameter SearchQuery. If you notice, when you search for a term, this term is transmitted to the Search Results page with as GET paramater. Let me give you an example:
    I search for "something", and my URL looks like:
    http://localhost/35sp1com/results.aspx?IndexCatalogue=allsite&SearchQuery=something 

    2. Once you get this parameter in your user control, you can do what ever you want with it - for example, save it in a text file, or in a database. It is up to you.

    I hope this helps you.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    13 Nov 2008
    Link to this post
    I certainly noticed this and will probably take this approach, but how can I get the count and display of results to log them? Of course, I could run the search again myself with the logged keywords but I could do that myself anyway. I'm wondering if there is a way to log both the keyword AND a summary of results so that I can improve my keywords within my site pages. if nothing else this could be triggered on empty result sets only... but I don't have the time to run each query individually to check the result counts
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Nov 2008
    Link to this post
    Hello SelArom,

    Now I see your point.
    I will log as a task to provide a developers documentation and samples on the Search Apis and customizations that could be done.

    I apologize that could not suggest you anything different from my initial suggestion for the time being.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered