Skip to main content.
home | support | download

Back to List Archive

Re: filter result

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Mar 01 2005 - 01:13:57 GMT
On Mon, Feb 28, 2005 at 05:15:58PM +0200, ??????????? ?????? wrote:
> > > Hi I use swish some years and think necessary add to swish some 
> > > features like 
> > > limit search result by some property name with unique value.
> > > 
> > > For example:
> > > page 1 have property param="test" and content "someword"
> > > page 2 have property param="test2" and content "someword"
> > > page 3 have property param="test" and content "someword"
> > > page 4 have property param="test3" and content "someword"
> > > 
> > > Search:
> > > swish-e -w "someword" -uniqlimitproperty "param"
> > > 
> > > Result:
> > > page 1
> > > page 2
> > > page 4
> > 
> > What makes page 1 more unique than page 3?
> 
> His found first (have more rank)!
> Allow first and Skip all others results with same value of "param".


while ( my $result = $results->NextResult ) {
    next if $seen{ $result->Property('param') }++;
    push @result_list, $result;
}


-- 
Bill Moseley
moseley@hank.org
Received on Mon Feb 28 17:14:01 2005