Thanks Jon, Its very nice idea I dint thought about it, But I am already using order for one more field, "sort=field1+desc"
Can I have order for 2 fields something like "sort=field1+desc&field5+desc" Or is there something else I should do. Thanks Prakash -----Original Message----- From: Jon Baer [mailto:jonb...@gmail.com] Sent: Thursday, April 29, 2010 7:39 PM To: solr-user@lucene.apache.org Subject: Re: How to make documents low priority Does a "sort=field5+desc" on the query param not work? - Jon On Apr 29, 2010, at 9:32 AM, Doddamani, Prakash wrote: > Hi, > > > > I am using the boost factor as below > > <str name="qf"> > > field1^20.0 field2^5 field3^2.5 field4^.5 > > </str> > > > > Where it searches first in field1 then field1 and so on > > > > Is there a way, where I can make some documents very low priority so > that they come at the end? > > > > Scenario : > > > > <doc> > > <int name=" field1">aaa</int> > > <str name=" field2">bbb</str> > > <str name=" field3">cccc</str> > > <str name=" field4">dddd</str> > > <str name=" field5">1</str> > > <str name=" field6">eeee</str> > > <date name=" field7">2010-04-29T12:40:05.589Z</date> > > </doc> > > > > I want all the documents which have field5=1 come last and documents > which have field5=0 should come first while searching. > > Any advise is greatly appreciated. > > > > Thanks > > Prakash >