I *think* that he means that "myQueryReturningACountOfHowOftenThisDocumentIsReferenced" is something like facet.count (or so).
If not, I am sorry. However, it interests me very much, how to get the facet.count of the document in a query function. For example: If a document has got catField:finance - how many documents that match the query "x" got a facet on catField:finance? Is it possible to retrive that count and apply the count that affects the document (in this case the count for "finance") within a query function? Maybe we can discuss this later on, if Villemos's question is answered? Best Regards - Mitch -- View this message in context: http://lucene.472066.n3.nabble.com/Howto-build-a-function-query-using-the-query-function-tp729407p756421.html Sent from the Solr - User mailing list archive at Nabble.com.