2

I have been trying to figure out how to display (somewhat like Google) how many items the Sharepoint search-engine is searching amongst, and display it next to the search-field.

Does anyone know how to do this - or maybe have some tips to point me in the right direction ?

Thanks in advance

1 Answer 1

3

Out-of-the-box - just by using the User Interface (e.g. Web Parts) i don't believe is possible particularly for large result sets (you will always get a "estimative" count of RESULTS - see here for more details - http://blogs.msdn.com/b/sanjaynarang/archive/2009/02/20/handling-paging-and-total-results-count-in-sharepoint-custom-results-page.aspx).

On the other hand, you could see as part of the Search Scope how many items are included, or via SP-CA how many have been crawled.

Programatically however you could very easily reach your current Search Scope total results (or Shared Scopes) or even the Search Service Application data and create a simple web part (or extend the out-of-the-box CoreSearchResults) to display such information.

1
  • That certainly helps me. TotalRows is probably what I need.
    – user3801
    Commented Jun 9, 2012 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.