View keyword statistics for Content Search results
After you create and run a Content Search, you can view statistics about the estimated search results. This includes a summary of the search results (similar to the summary of the estimated search results displayed in the details pane), the query statistics such as the number of content locations with items that match the search query, and the name of content locations that have the most matching items. You can display statistics for one or more content searches. This lets you to quickly compare the results for multiple searches and make decisions about the effectiveness of your search queries.
Additionally, you can configure new and existing searches to return statistics for each keyword in a search query. This lets you compare the number of results for each keyword in a query and to compare the keyword statistics from multiple searches.
You can also download the search statistics and keyword statistics to a CSV file. This lets you use the filtering and sorting features in Excel to compare results, and prepare reports for your search results.
Get statistics for Content Searches
To display statistics for Content Searches:
In the Security & Compliance Center, go to Search > Content search.
In the list of searches, select one or more searches, and then click Search statistics.
On the Search statistics page, click one of the following links to display statistics about the selected searches.
This page displays statistics similar to the ones displayed in the details pane on the Content search page. Statistics for all selected searches are displayed. Note that you can also re-run the selected searches from this page to update the statistics.
a. The name of the Content Search. As previously stated, you can display and compare statistics for multiple searches.
b. The type of content location that was searched. Each row displays statistics for mailboxes, sites, and public folders from the specified search.
c. The number of content locations containing items that match the search query. For mailboxes, this statistic also includes the number of archive mailboxes that contain items that match the search query.
d. The total number of items of all specified content locations that match the search query. Examples of item types include email messages, calendar items, and documents. If an item contains multiple instances of a keyword that is being searched for, it's only counted once in the total number of items. For example, if you're searching for words "stock" or "fraud" and an email message contains three instances of the word "stock", it's only counted once in the Items column.
e. The total size of all items that were found in the specified content location that match the search query.
This page displays statistics about the search query.
a. The name of the Content Search that the row contains query statistics for.
b. The type of content location that the query statistics are applicable to.
c. This column indicates which part of the search query the statistics are applicable to. Primary indicates the entire search query. If you use a keyword list when you create or edit a search query, statistics for each component of the query are included in this table. See the Get keyword statistics for Content Searches section in this article for more information.
d. This column contains the actual search query that run by the Content Search tool. Note that the tool automatically adds a few additional components to the query that you create.
When you search for all content in mailboxes (by not specifying any keywords), the actual key word query is
size>=0so that all items are returned.
When you search SharePoint Online and OneDrive for Business sites, the two following components are added:
NOT IsExternalContent:1 - Excludes any content from an on-premises SharePoint organization.
NOT IsOneNotePage:1 - Excludes all OneNote files because these would be duplicates of any document that matches the search query.
e. The number of the content locations (specified by the ** Location type ** column) that contain items that match the search query listed in the Query column.
f. The number of items (from the specified content location) that match the search query listed in the Query column. As previously explained, if an item contains multiple instances of a keyword that is being searched for, it's only counted once in the this column.
g. The total size of all items that were found (in the specified content location) that match the search query in the Query column.
This page displays statistics about the number of items that match the search query in each content location that was searched. The top 1,000 locations are displayed. If you view statistics for multiple searches, the top 1,000 locations for each search are displayed. Note that a content location isn't included on this page if it doesn't contain any items that match the search query.
a. The name of the content location.
b. The type of content location that the location statistics are applicable to.
c. There are columns for each search that you're displaying statistics for. This column shows the number (and total size) of items that match the search query in each content location. Note that when you're displaying statistics for multiple searches, the "NA" in this column indicates that the content location wasn't included in that search.
Get keyword statistics for Content Searches
As previous explained, the Queries page shows the search query and the number (and size) of items that match the query. If you use a keyword list when you create or edit a search query, you can get enhanced statistics that show how many items match each keyword or keyword phrase. This can help you quickly identify which parts of the query are the most (and least) effective. For example, if a keyword returns a large number of items, you might choose to refine the keyword query to narrow the search results. You can set up a keyword list when you create or edit a Content Search.
To create a keyword list and view keyword statistics for a Content Search:
In the Security & Compliance Center, go to Search > Content search.
In the list of Content Searches, click and a search, and then click Edit .
Click Query and then do the following things:
a. Click the Show keyword list check box.
b. Type a keyword or keyword phase in a row in the keywords table. For example, type budget in the first row and then type security in the second row.
After adding the keywords that you want to search and get statistics for, click Search to run the revised search.
When the search is completed, select it in the list of searches, and then click Search statistics . You can also display and compare keyword statistics for multiple searches.
On the Search statistics page, click Query to display the keyword statistics for the selected searches.
As shown in the previous screenshot, the statistics for each keyword are displayed; this includes:
The keyword statistics for each type of content location included in the search.
The actual search query for each keyword, which includes any conditions from the search query.
The complete search query (identified as Primary in the Part column) and the statistics for the complete query. Note these are the same statistics displayed on the Summary page.
To help reduce issues caused by large keyword lists, you're now limited to a maximum of 20 rows in the keyword list of a search query.
Send feedback about: