SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do we get a count of the different file types indexed by SharePoint 2010's Enterprise Search? For example, we'd like to have a count of all the *.docx, *.xlsx, etc.

Thank you.

share|improve this question
Are you looking for unique list of file extensions? or the count of each file extension that you specify? – andrew.petersen15 Nov 14 '12 at 17:42
@andrew.petersen15, we're looking for the count of each file extension. Thanks. – Alex C Dec 2 '12 at 6:53
up vote 1 down vote accepted

I can't think of an efficient way of doing this apart from tagging all documents.

The simplest and probably most efficient solution I can think of is, to do this on an event receiver when a document is added to the library, then writing an update script to set all the values of anything updated previously.

You could do this in a good afternoon and have it tested for the following lunch time for deployment.

Then it would be easy to collate the taxonomy counts. Either use the refinements panel or lookup this Managed Metadata Web Part on CodePlex.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.