Showing posts with label SharePoint Search Index. Show all posts
Showing posts with label SharePoint Search Index. Show all posts

Saturday, November 5, 2016

View SharePoint Online (SPO) Crawl Logs in Office 365

SharePoint Online Search Crawl Logs.


You can view the Crawl Logs in SharePoint Online using the Office 365's eDiscovery site template and by granting the eDiscovery managers security group the appropriate permissions to read crawl logs from your tenant. 
Create  a new subsite of eDiscovery case site template under eDiscovery site.
Navigate to your case site and now create a new eDiscovery set either using the left-side navigation or using the +new item under ‘Identify and Hold’ section.
  •  Give it a name
  •  In the Sources section, click the ‘Add & Manager Source’ link, which will open a popup box. In this popup box, in the Locationssection, ensure you add all the Site Collection URLs that contain searchable content and for which you want to collect the crawl logs. After adding all the sources, then click Ok. Here is a screenshot from my tenant
  • You can click on the ‘Get Statistics’ button to show the Items count and size.
  • You can also click on the ‘Preview Results’ button which open a popup, then click on the ‘SharePoint’ tab to view the results listed.
  •  Finally, ‘Save’ your eDiscovery set.
 Now create a new Query. You can do this from left-side navigation or using the +new item link under ‘Search and Export’.
  • Give it a name
  • For ‘Sources’ click on ‘Modify Query Scope’ and in the pop select the eDiscovery set that was created in step 5.
  • Now click on the ‘Search’ button to see the statistics (items and size) updated under Sources and also check the results listed in theSharePoint tab down below.
  • Save your query.
Open up your Query and click the ‘Export’ button at the bottom of the page. This will lead to Export: New item page. In this page, we don’t have to change anything as we are not concerned with Exchange mailbox logs or the versions of SharePoint documents.
Note: If you checked the ‘Include versions for SharePoint documents’ checkbox, then be aware that this could increase the file size of the export depending on the size of your libraries that has versioning enabled.
Click OK & Download the report

Tuesday, November 1, 2016

SharePoint Search index reset for a specific content source

#This script will remove and re-add your content source’s start addresses.
#when the next full crawl is started for the content source, SharePoint will rebuild the index.
$sourceName = “Content Source Name
$SSA = Get-SPEnterpriseSearchServiceApplication
$source = Get-SPEnterpriseSearchCrawlContentSource -Identity $sourceName -SearchApplication $SSA
$startaddresses = $source.StartAddresses | ForEach-Object { $_.OriginalString }
$source.StartAddresses.Clear()
ForEach ($address in $startaddresses ){ $source.StartAddresses.Add($address) }

Note: Replace content source name which is in bold.