Hello, is there any code to get this search result for recently and popular search. Check attachment below.
From the attachment, any keywords search in the forum will be shown at recent search.
We would need to be storing the search terms for each search request. Could be done. Unless maybe along with a timestamp probably only useful if you have lots of searches done.
Quote from: vbgamer45 on April 03, 2020, 12:43:03 PM
We would need to be storing the search terms for each search request. Could be done. Unless maybe along with a timestamp probably only useful if you have lots of searches done.
How can this be done please. If there is any way of coding it, it can be drop here with steps.
Thanks for getting back to me.
Yes, it would need to be coded. A new database table created to store the data.
It's a surprising amount of work and surprisingly easy to game on a small forum by accident - someone searches, they don't find what they wanted so they do different searches. A determined person ca screw this up very quickly, unless you have a large board and a lot of people, and then there are probably better ways of working out what's trending.
Note that Twitter doesn't use search nearly so much to define its trends as other systems, and .google can get away with this because enough people use Google generally that someone doing repeated searches/variants/trying to find something is a rounding error in the data.