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:
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.
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.
Use Google Anlytics API to get the most visited pages. The problem here is that it would not be the most searched pages.
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:
Examine Lucene might have a way, but i cant find any information about that. I found that
Examine.LuceneEngine.LuceneSearchResults
is containing an object calledTopDocs
, which do not seem to be what i am looking after.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.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?
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
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.
is working on a reply...