: ... another "magic" field name like "score" ... : : This could be done with a separate "magic" punctuation like $score, : $mean (the mean score), etc.so $docid would work.
"$" (and all other punctuation) is a legal character in field names ... whitespace is even legal in fieldnames, but some of the code that parses field names out of params can't handle it. this is one of the "related issues" behind this proposal... http://wiki.apache.org/solr/FieldAliasesAndGlobsInParams -Hoss