Re: Need a way to set a result limit on a particular field

2005-06-16 Thread Jay Hill
ostFreqCount.inc(host_id); > > > > > >if(hostFreqCount.get(host_id) > 3) continue; > > > > > > /// show the hit to the use... > > > > > > } > > > } > > > > > > > > > Hope it helped ! > > >

Re: Need a way to set a result limit on a particular field

2005-06-16 Thread Richard Krenek
st_id); > > > >if(hostFreqCount.get(host_id) > 3) continue; > > > > /// show the hit to the use... > > > > } > > } > > > > > > Hope it helped ! > > > > Jp > > > > > > -Original Message- > > From:

Re: Need a way to set a result limit on a particular field

2005-06-15 Thread Jay Hill
Count.inc(host_id); > >if(hostFreqCount.get(host_id) > 3) continue; > > /// show the hit to the use... > > } > } > > > Hope it helped ! > > Jp > > > -Original Message----- > From: Jay Hill [mailto:[EMAIL PROTECTED] > Sent: Wed

RE: Need a way to set a result limit on a particular field

2005-06-15 Thread Robichaud, Jean-Philippe
ope it helped ! Jp -Original Message- From: Jay Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 2:01 PM To: java-user@lucene.apache.org Subject: Re: Need a way to set a result limit on a particular field Thanks Tony and Erik for the replies. The trick is we don't know the

Re: Need a way to set a result limit on a particular field

2005-06-15 Thread Jay Hill
Thanks Tony and Erik for the replies. The trick is we don't know the hosts that will be returned in advance, we just don't want more than 3 from any one host. It's not unlike searching on Google where you might see a link that says "More results from foo.com". We essentially want to discard any res

Re: Need a way to set a result limit on a particular field

2005-06-14 Thread Erik Hatcher
On Jun 14, 2005, at 7:23 PM, Jay Hill wrote: I have a need to limit my Hits returned based on one of the indexed fields. This is a web application and we want to limit the number of hits from any one host. We have a field named "host_id" and I'd like to be able to limit my results to no more tha

RE: Need a way to set a result limit on a particular field

2005-06-14 Thread Tony Schwartz
Tony Schwartz [EMAIL PROTECTED] -Original Message- From: Jay Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 7:23 PM To: java-user@lucene.apache.org Subject: Need a way to set a result limit on a particular field I have a need to limit my Hits returned based on one of the

Need a way to set a result limit on a particular field

2005-06-14 Thread Jay Hill
I have a need to limit my Hits returned based on one of the indexed fields. This is a web application and we want to limit the number of hits from any one host. We have a field named "host_id" and I'd like to be able to limit my results to no more than three results for any one host_id. Any help i