Side Note: It's my opinion that "type ahead" or "auto complete' style functionality is best addressed by customized logic (most likely using specially built fields containing all of the prefixes of the key words up to N characters as seperate tokens). simple uses of PrefixQueries are only going ot get you so far particularly under heavy load or in an index with a large number of unique terms.
: If I can alter this I think sorted.. what's idf and docFreq? people who really want to get into the nitty gritty of scoring should really familiarize themselves with the details of the Lucene scoring mechanisms... http://lucene.apache.org/java/docs/scoring.html (this is linked to from the question "How are documents scored" in the SolrRelevancyFAQ .. any edits from users to improve this FAQ would be greatly appreciated: http://wiki.apache.org/solr/SolrRelevancyFAQ ) NOTE: in a "type ahead" style situation, you may actaully want an IDF function that's the inverse of typical search usages (which i guess would make it just a "DF" function) since unique terms really aren't "better" in this usecase. -Hoss