: Well, both have a score of -Infinity. So they're "equal" and : the tiebreaker is the internal Lucene doc ID. : : Now this is not helpful since the question now is where : -Infinity comes from, this looks suspicious: : -Infinity = (MATCH) FunctionQuery(log(int(clicks))), product of: : -Infinity = log(int(clicks)=0)
If the score of this doc was not "-Infinity" before your doc update, and it became "-Infinity" after your update, and your update did not intentionally change the value of the "clicks" field to "0" then i suspect what you are seeing is the result of not having all of your fields as stored="true"... https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents >> /!\ All original source fields must be stored for field modifiers to >> work correctly, which is the Solr default -Hoss http://www.lucidworks.com/