: : and what I get instead is: : numFound=26 : score=13.155498 (for doc with id=SP2514N) : : This is surprising for two reasons: : : -The score value is not the square of the "popularity" field.
the function query does square the popularity field, but then it becomes a factor of the overall score -- take a look at the score explanations (add debugQuery=true) for hte details -- in particular the queryNorm comes into play based on boosts. : -The result set cardinality is altered by the use of the FunctionQuery and I : was under the impression that functions changed the ordering of the results : but had no effect on the actual number of matched documents. function queries inherently match all documents -- you need to make the first clause mandatory to confine the results to just id:SP2514N (or put that clause in an "fq") -Hoss