Asif,

Could it have something to do with the deleted documents in your unoptimized 
index?  There documents are only marked as deleted.  When you run optimize you 
really remove them completely.  It could be that they are getting counted by 
something and that messes up the scoring/order.


Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Asif Rahman <a...@newscred.com>
> To: solr-user@lucene.apache.org
> Sent: Thursday, March 26, 2009 10:24:19 PM
> Subject: Incorrect sort with with function query in query parameters
> 
> 
> Hi all,
> 
> I'm having an issue with the order of my results when attempting to sort by
> a function in my query.  Looking at the debug output of the query, the score
> returned with in the result section for any given document does not match
> the score in the debug output.  It turns out that if I optimize the index,
> then the results are sorted correctly.  The scores in the debug output are
> the correct scores.  This behavior only occurs using a recent nightly build
> of Solr.  It works correctly in Solr 1.3.
> 
> An example query is:
> 
> http://localhost:8080/solr/core-01/select?qt=standard&fl=*,score&rows=10&q=*:*%20_val_:"recip(rord(article_published_at),1,1000,1000)"^10000&debugQuery=on
> 
> I've attached the result to this email.
> 
> Can anybody shed any light on this problem? 
> 
> Thanks,
> 
> Asif
> http://www.nabble.com/file/p22735009/result.xml result.xml 
> -- 
> View this message in context: 
> http://www.nabble.com/Incorrect-sort-with-with-function-query-in-query-parameters-tp22735009p22735009.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to