Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Jacobsen 597 posts 2395 karma points
    Aug 24, 2021 @ 13:08
    Bo Jacobsen
    0

    Best practice for most searched sites

    Hi all.

    Before users search on our website, we want to be able to show them the top 10 of the most searched pages.

    The issue is that i am not sure how to achieve this the best way.

    So i was thinking:

    1. Examine Lucene might have a way, but i cant find any information about that. I found that Examine.LuceneEngine.LuceneSearchResults is containing an object called TopDocs, which do not seem to be what i am looking after.

    2. Each time a user is making a search, then make a non awaitable Task to update a custom row, with the top 10 seached results, based on the highest score. My concern is what impact that would have on the performance of the database and the website.

    3. Use Google Anlytics API to get the most visited pages. The problem here is that it would not be the most searched pages.

    Do anyone have some knowledge about this?

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Aug 26, 2021 @ 10:10
    Alex Skrypnyk
    0

    Hi Bo

    You can use Google Tag manager integrated to the search page or search form - and track all search calls on the site.

    Thanks,

    Alex

  • Bo Jacobsen 597 posts 2395 karma points
    Aug 31, 2021 @ 07:35
    Bo Jacobsen
    0

    Hi Alex.

    Thanks for replying.

    That's a possibility and something i will think about, thank you.

    We also though of updating the database, whenever a user is clicking on a search result.

Please Sign in or register to post replies

Write your reply to:

Draft