lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: clustering results
Date Sun, 11 Apr 2004 00:05:18 GMT
On Apr 10, 2004, at 9:47 AM, Venu Durgam wrote:
> I am not sure how sort can filter out results.
> sort will just sort the results right ?

Right.... no filtering using Sort.

> lets say if i had below results
> http://www.b.com/1.html
>
> http://www.a.com/1.html
> http://www.b.com/2.html
> http://www.a.com/2.html
>
> if you sort by domain name, results might be
> http://www.a.com/1.htmlhttp://www.a.com/2.html
> http://www.b.com/1.html
> http://www.b.com/2.html
>
> If i want to have one result per domain. no sorting, just filtering 
> out some results.
> http://www.b.com/1.html
>
> http://www.a.com/1.html
>
> can this still be achieved using sort? If not any other ways of doing 
> this ?

Not that I know of, directly.  The brute force way of sorting and then 
walking the results yourself to collect things in the way you want is 
the only method I can think of at the moment.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message