lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Question: dynamic sorting
Date Thu, 15 Sep 2005 17:26:53 GMT
Hi James,

Check out the org.apache.lucene.search.package, there are several sort
classes that will let you write  a custom sorter.  If you have a copy
of LIA, look at chapter 6 for an example (
http://www.lucenebook.com/search?query=custom+sort+section%3A6* )

Otis

--- James Huang <metaprgmr@yahoo.com> wrote:

> Suppose I have a book index with field="publisher", field="title",
> etc.
> If a user has bought Manning books, then I like to sort the result
> with Manning books listed first.
>  
> In essence, I'm asking for a parameterized custom sorting. Is there a
> way to do this?
>  
> Thanks,
> -James
> 
> 
> 		
> ---------------------------------
> Yahoo! for Good
>  Click here to donate to the Hurricane Katrina relief effort. 


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


Mime
View raw message