lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mordo, Aviran (EXP N-NANNATEK)" <aviran.mo...@lmco.com>
Subject RE: custom sort
Date Tue, 30 Aug 2005 13:25:05 GMT
When using sort there is no meaning for weight. 

Aviran
http://www.aviransplace.com 

-----Original Message-----
From: Chris Lu [mailto:chris.lu@gmail.com] 
Sent: Tuesday, August 30, 2005 12:35 AM
To: java-user@lucene.apache.org; raymondcreel
Subject: Re: custom sort

You can just assign the field B some weight when creating the index?

--
Chris Lu
------------
Lucene Search RAD on Any Database
http://www.dbsight.net

On 8/29/05, raymondcreel (sent by Nabble.com) <lists@nabble.com> wrote:
> 
> Is it possible to write a custom sort for a query such that the first
N documents that match a certain additional criteria get pushed to the
top of the sort?  For instance say you sort your query based on field A,
but you want to tweak the results such that the first 10 documents in
the result set which have field B = some criteria will appear at the
beginning of the resulting hits collection?
> 
> thanks much,
> raymond
> --
> Sent from the Lucene - Java Users forum at Nabble.com:
> http://www.nabble.com/custom-sort-t262833.html#a737222
> 
>

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



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