Neither. :-) 4) Top 10 fieldvalues (for some fields) returned in search results
So, let's say the results of a search were: doc a=title:1,keyword:a,contents:somelongmemoryhoggingstring doc b=title:1,keyword:a,contents:somelongmemoryhoggingstring doc c=title:1,keyword:b,contents:somelongmemoryhoggingstring doc d=title:2,keyword:b,contents:somelongmemoryhoggingstring doc e=title:2,keyword:b,contents:somelongmemoryhoggingstring doc f=title:3,keyword:b,contents:somelongmemoryhoggingstring I'd like to have the following (sorted in decreasing order of frequency) For the title field, field value "1" - frequency =3 field value "2" - frequency =2 field value "3" - frequency =1 For the keyword field, field value "b" - frequency =4 field value "a" - frequency =2 So after getting the Hits (or using HitCollector), run through each document to count the frequencies of each field value, so that the top 10 can be obtained. k On Tue, 8 Mar 2005 12:19:48 +0000 (GMT), mark harwood wrote: >�Not sure I get what the requirement is yet: > >>>�Here's my requirement, ..I need to perform a simple >>>�"Top 10 most frequent occurring <field>" from a >�search. > >�Does this mean: >�1)Top 10 fieldnames present in each of your matching >�documents? >�2)Top 10 most frequent terms found in a choice of >�field? >�3)Top 10 fields that contained the search term(s)? > >�Cheers >�Mark > > >�Send instant messages to your online friends >�http://uk.messenger.yahoo.com > >�-------------------------------------------------------------------- >�- 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]
