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

Get keyword statistics for Content Searches

Get statistics for Content Searches

To display statistics for Content Searches:

  1. In the Office 365 Security & Compliance Center, go to Search & investigation > Content search.

  2. In the list of searches, select one or more searches, and then click Search statistics Search Statistics button .

    Select multiple searches and then click Search statistics
  3. On the Search statistics page, click one of the following links to display statistics about the selected searches.

    Summary

    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.

    Summary of the statistics for the selected searches
    1. The name of the Content Search. As previously stated, you can display and compare statistics for multiple searches.

    2. The type of content location that was searched. Each row displays statistics for mailboxes, sites, and public folders from the specified search.

    3. The number of content locations containing items that match the search query.

    4. The total number of items of all specified content location 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.

    5. The total size of all items that were found in the specified content location that match the search query.

    Queries

    This page displays statistics about the search query.

    Search query statistics for the selected searches
    1. The name of the Content Search that the row contains query statistics for.

    2. The type of content location that the query statistics are applicable to.

    3. 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.

    4. 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>=0 so 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.

    5. 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.

    6. 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.

    7. The total size of all items that were found (in the specified content location) that match the search query in the Query column.

    Top locations

    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.

    Statistics about the number of items found in the content locations that were searched
    1. The name of the content location.

    2. The type of content location that the location statistics are applicable to.

    3. 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.

Return to top

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:

  1. In the Office 365 Security & Compliance Center, go to Search & investigation > Content search.

  2. In the list of Content Searches, click and a search, and then click Edit Edit icon .

  3. Click Query and then do the following things:

    Click the Show keyword list checkbox and type a keyword in each row
    1. Click the Show keyword list check box.

    2. 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.

  4. After adding the keywords that you want to search and get statistics for, click Search to run the revised search.

  5. When the search is completed, select it in the list of searches, and then click Search statistics Search Statistics button . You can also display and compare keyword statistics for multiple searches.

  6. On the Search statistics page, click Query to display the keyword statistics for the selected searches.

    The statistics for each keyword for the selected searches are displayed

    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.

Return to top

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!

×