I think the closest you get out of the box is the term vector component[1] .
Cheers [1] https://cwiki.apache.org/confluence/display/solr/The+Term+Vector+Component ----- --------------- Alessandro Benedetti Search Consultant, R&D Software Engineer, Director Sease Ltd. - www.sease.io -- View this message in context: http://lucene.472066.n3.nabble.com/counting-number-of-term-in-a-doc-tp4332032p4332161.html Sent from the Solr - User mailing list archive at Nabble.com.