If your results are only sorted by score, it's possible that some have exactly the same score. Unless you use a secondary sort, I don't think the order of returned results among same-scored hits is guaranteed. As a result, if you cut off hits at some fixed threshold, you could see different entries at the low-scoring end of the hit list. - Steve
-----Original Message----- From: Benson Margulies [mailto:bimargul...@gmail.com] Sent: Sunday, April 01, 2012 12:09 PM To: solr-user@lucene.apache.org Subject: Re: reproducibility of query results i make a new index each iteration. if I insert the same docs in the same order, should I expect the same query results? Note that I shut down entirely after the adds, then in a new process run the queries. On Apr 1, 2012, at 11:37 AM, Ahmet Arslan <iori...@yahoo.com> wrote: >> I appear to be observing some >> unpredictability in query results, and I wanted to eliminate Solr >> itself as a possible cause. >> >> Using 1.4 at the moment. I insert a stack of document (using the >> EmbeddedSolrServer) and then run a query, retrieving 200 results. (A >> significant fraction of the docs in the index). Should I expect to >> get precisely the same docs in the same order with the same scores >> every time that I do this? > > If your index does not change, yes you can expect this. If you add/delete > docs score and order can change.