Hi, I was thinking of a statistics feature, to keep track of popular searches. You could track a table with keywords, users (if logged in), search page/view and timestamp etc.

It would provide a set of blocks like 'Top Searches', 'Recent Searches'.

And even itself it could be a search index, and they you would have 'Similar Searches'...

I might try something when I have time.

Comments

drunken monkey’s picture

Status: Active » Closed (won't fix)

This doesn't need to be in the Search API module, and, in my opinion, also shouldn't. While only a part of the users will want such a feature, it would cost performance and memory for all others, too.
With hook_search_api_query_alter() you have a very easy way to react upon search queries, and store whatever data in whichever way you want.
Just create a custom module for it, this could be valuable to a lot of Search API users. I'd then just link to it from the Search API project page (although the list now starts to grow a bit out of control …).

branana’s picture

branana’s picture

Status: Closed (won't fix) » Needs review
drunken monkey’s picture

Category: Feature request » Support request
Issue summary: View changes
Status: Needs review » Fixed

A bit late maybe, but I've now included it in the list.
Sorry, must have slipped me by originally.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.