Closed (fixed)
Project:
Apache Solr Statistics
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2011 at 12:32 UTC
Updated:
24 Nov 2011 at 09:43 UTC
Jump to comment: Most recent file
Comments
Comment #1
eddie_c commentedComment #2
janusman commentedEww.
Your patch is on the right track; however I found an additional bug introduced during the port to 7.x which is also fixed in the attached patch.
Committing this. Thanks!
Comment #3
eddie_c commentedThanks for fixing this janusman. I realise now I'd set the wrong range count in the query below.
$result = db_query_range("SELECT keywords FROM {apachesolr_stats} WHERE
numfound > :numfound AND timestamp > :timestamp
ORDER BY timestamp DESC", 0, 5000, array(':numfound' => 0, ':timestamp' => $timestamp));
Just wondering though - why set a limit on the number of results returned at all? Will this not introduce some inaccuracy in the count if there is a really large number of searches made in the last week?