Use SortField.FIELD_SCORE as the first element in the SortField[] when you pass it to sort method.

Praveen
----- Original Message ----- From: "Chris Fraschetti" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 13, 2004 3:19 PM
Subject: Re: sorting and score ordering



Will do.

My other question was: the 'score' for a page as far as I know, is
only accessible post-search... and is not contained in a field. How
can I specift the score as a sort field when there is no field 'score'
?

-Chris


On Wed, 13 Oct 2004 21:06:14 +0200, Daniel Naber <[EMAIL PROTECTED]> wrote:
On Wednesday 13 October 2004 20:44, Chris Fraschetti wrote:

> I haven't seen an example on how to apply two sorts to a search.. can
> you help me out with that?

Check out the documentation for Sort(SortField[] fields) and SortField.



Regards
Daniel

--
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
___________________________________________________
Chris Fraschetti, Student CompSci System Admin
University of San Francisco
e [EMAIL PROTECTED] | http://meteora.cs.usfca.edu

---------------------------------------------------------------------
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]



Reply via email to