I did it like below, but used the lucene score instead. Will report back with results in a month or so.
On Thu, 2006-05-25 at 11:51 +0200, karl wettin wrote: > Did anyone write some neat tool for statistical analysis of hits over > time? I need one. And it must be fast. Was thinking something like this: > > List<TimeFrame> timeFrames; > > class TimeFrame { > Date from; > Date to; > > void add(Hits hits) { > int score = 10; > for (int d = 0; score<0 && d<hits.length(); d++) { > increaseScore(it.next(), score); > score--; > } > > // I would then apply similar scoring on most top classifications > // (categories or what not) in the hits. > } > } > > > But I only work the hits. Perhaps I should work the queries too? > > Any great ideas? > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]