Closed (fixed)
Project:
Search API Pages
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2019 at 18:23 UTC
Updated:
30 Jan 2019 at 21:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jrbWith the attached patch, search queries using the Search API pages module will be logged to the Watchdog in the same way that the core Drupal Search module does (if the variable "search_logging" is set).
Comment #3
jrbComment #4
jrbSo, I just double-checked and saw that core Search *is not* a dependency for Search API (I was thinking it was). That means that the "Top search phrases" report which is part of the Database logging (dblog) module wouldn't exist unless the Search module is also enabled. Oops!
That report may be useful, so does it make sense to add a hook_menu_alter() to this module add that report? We'd also need to add that "Log searches" setting (or equivalent) to this module.
Comment #5
borisson_That report may be useful indeed, but I think this should probably be a feature in search api rather than search api pages. For the 7.x version of this module, we're not introducing new code for anything but bugfixes.
Comment #6
drunken monkeyPlease just use the Search API stats module for this.
Since this functionality impacts performance, and is unnecessary for a lot of sites, having it in an add-on module makes more sense than including it here or in Search API directly.
Comment #7
jrbThanks! Didn't know that module existed.