<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>ashishranjan</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/ashishranjan/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/ashishranjan/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:18:50 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Restore content from Backed Up DBs -SharePoint 2013 - Part 2</title>
      <link>https://docs.microsoft.com/archive/blogs/ashishranjan/restore-content-from-backed-up-dbs-sharepoint-2013-part-2</link>
      <pubDate>Wed, 15 Jul 2015 03:40:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Ranjan (MSFT)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ashishranjan/2015/07/15/restore-content-from-backed-up-dbs-sharepoint-2013-part-2/</guid>
      <description><![CDATA[In Previous part of this , we learnt , how can we restored the old content DB and make it available...]]></description>
      <content:encoded><![CDATA[<p>In <a title="previous" href="https://blogs.msdn.com/b/ashishranjan/archive/2015/07/15/restore-content-from-backed-up-dbs-sharepoint-2013.aspx">Previous</a> part of this , we learnt , how can we restored the old content DB and make it available for export from the UI of CA.</p>
<p>In this part, we will see&nbsp; , how can we restore the content by exporting the old data and importing it back to the content in context.</p>
<h2>Access the old content and export</h2>
<p>As the data from older date is restored on the SQL server,this can be accessed from Central Admin. Ensure that the account which is opening the CA, must have access on Restored DB. Following steps can be followed.</p>
<ul>
<li>Open CA.</li>
<li>Navigate to Back and restore page and click on &ldquo;Recover data from an unattached content database&rdquo; from the Granular Backup section.</li>
<li>On this page, filling the information of SQL server and Database name of restored Database.If you have restore the database on different SQL server, please enter the appropriate SQL server name and ensure the operating account has access to the Database.</li>
</ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/4174.8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/4174.8.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/4174.8.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/4174.8.png" alt="" border="0" /></a></p>
<p>And click &ldquo;Next&rdquo;. Select the appropriate site and the list/library or site which needs to be exported</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5710.9.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5710.9.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5710.9.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5710.9.png" alt="" border="0" /></a></p>
<p>and further click Next</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5807.10.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5807.10.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5807.10.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5807.10.png" alt="" border="0" /></a></p>
<p>Click on Start Export on this page.</p>
<p>The export will be completed based on the size of the list,library or site.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3122.11.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3122.11.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3122.11.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3122.11.png" alt="" border="0" /></a></p>
<p><span style="line-height: 107%; font-family: 'Calibri',sans-serif; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">Check the shared location and you must see a cmp extension file along with export log.</span></p>
<p><span style="line-height: 107%; font-family: 'Calibri',sans-serif; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3531.12.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3531.12.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3531.12.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3531.12.png" alt="" border="0" /></a></span></p>
<p>&nbsp;</p>
<h2>Import the Exported content to Current Site/new<br />Site</h2>
<p>&nbsp;</p>
<p>Now we need to import the exported data/content to the desired location. The imports just copies the data back on any site as it was exported.</p>
<p>The initially the list had 4 item for this demo and two of them were corrupted and had to be deleted. Now the aim is to retrieve back the data when it had all 4 images working fine.below can be predicted as current view for the list before restore with 2 items.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/8267.13.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/8267.13.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/8267.13.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/8267.13.png" alt="" border="0" /></a></p>
<p>Following import script should be used. &nbsp;&nbsp;<br />&nbsp;&nbsp;<em>Import-SPWeb -Identity &lt;web application URL&gt; &nbsp;-Path &lt;Location of exported file&gt; -IncludeUserSecurity&nbsp;&nbsp;</em><br />&nbsp;</p>
<p>More information about Import-SPWeb can be found at <a href="https://technet.microsoft.com/en-us/library/ff607613.aspx">https://technet.microsoft.com/en-us/library/ff607613.aspx</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Restore content from Backed Up DBs -SharePoint 2013 - Part 1</title>
      <link>https://docs.microsoft.com/archive/blogs/ashishranjan/restore-content-from-backed-up-dbs-sharepoint-2013-part-1</link>
      <pubDate>Wed, 15 Jul 2015 03:07:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Ranjan (MSFT)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ashishranjan/2015/07/15/restore-content-from-backed-up-dbs-sharepoint-2013-part-1/</guid>
      <description><![CDATA[Restore a List, Library or Site from Backed up DB
There can be a scenario where you are asked to...]]></description>
      <content:encoded><![CDATA[<h1>Restore a List, Library or Site from Backed up DB</h1>
<p>There can be a scenario where you are asked to restore some content from old date for a List, Library of for a site on SharePoint.</p>
<p><strong>Case:</strong> A user des something wrong with a List or library and is not recoverable. He needs to restore to yesterday&rsquo;s data which was working to current site. There can be another case wen content is deleted and removed from recycle bin. To recover data you need to ensure that the back ups are maintained for the days from which data needs to be recovered.</p>
<h2>Following are the steps to achieve this.</h2>
<h3>Identify the Database to be restored</h3>
<p>First of all, we need to identify the database which needs<br />to be restored. Following are the steps to find that.</p>
<ul>
<li>Log on to CA(Central Administration)</li>
<li>From Application Management, select view all<br />site collections.</li>
<li>Select appropriate Web Application and Site<br />collection.</li>
<li>Note down the Content Database as shown below</li>
</ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5633.1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5633.1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5633.1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5633.1.png" alt="" border="0" /></a></p>
<h3>Restore the Old Back up to SQL</h3>
<p>Open SQL server Studio and connect to the Database which can be accessed with the Farm. It is important that the DB server is in same domain. Ensure that you have logged in to the server with SysAdmin rights on the DB.</p>
<p>This restoration is just done temporarily to export the granular content from the database and hence it is okay to restore this on the FARM DB. Make sure you delete it from the Server once we have completed export of content.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/1680.2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/1680.2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/1680.2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/1680.2.png" alt="" border="0" /></a></p>
<p>Click onto the restore Database.Select &ldquo;Device&rdquo; and navigate to the bak file that should be restored from the earlier backup as shown below</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/0181.3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/0181.3.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/0181.3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/0181.3.png" alt="" border="0" /></a></p>
<p>Change the name of the Database in the destination section as shown below.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/6116.4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/6116.4.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/6116.4.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/6116.4.png" alt="" border="0" /></a></p>
<p>Change the location of the files from the &ldquo;Files&rdquo; tab in the left navigation of the window. Change it the temp location where the backup was kept. We will have to delete this Temp folder later, once we have completed entire process.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5633.5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5633.5.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5633.5.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5633.5.png" alt="" border="0" /></a></p>
<p><span style="line-height: 107%; font-family: 'Calibri',sans-serif; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">After this, Navigate to the &ldquo;Options&rdquo; tab and ensure that you have the check boxes selected as shown below for restoration of DB </span></p>
<p>&nbsp;</p>
<p>Once the restore complete, you should see a success message as below</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3482.7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3482.7.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3482.7.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3482.7.png" alt="" border="0" /></a></p>
<p>&nbsp;This concludes restoration of the old data on the SharePoint Farm. <a title="Next Stage" href="https://blogs.msdn.com/b/ashishranjan/archive/2015/07/15/restore-content-from-backed-up-dbs-sharepoint-2013-part-2.aspx">Next stage </a>of this will explain , How CA can be used to export the content to importing back on to fix the corrupted content.</p>]]></content:encoded>
    </item>
    <item>
      <title>Change the HUB URI for the managed metadata hub</title>
      <link>https://docs.microsoft.com/archive/blogs/ashishranjan/change-the-hub-uri-for-the-managed-metadata-hub</link>
      <pubDate>Mon, 02 Feb 2015 04:59:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Ranjan (MSFT)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ashishranjan/2015/02/02/change-the-hub-uri-for-the-managed-metadata-hub/</guid>
      <description><![CDATA[Content type hub is a feature which is widely used by many companies to operate and govern their...]]></description>
      <content:encoded><![CDATA[<p>Content type hub is a feature which is widely used by many companies to operate and govern their content types used across SharePoint setup. This allowed IT administrators to control the types of content with the organization, and make it more searchable and organized.&nbsp; This also helps them in restricting&nbsp;contributors to create or build ad hoc information in system.One of my customer had a scenario where the wanted to upgrade the Content type hub to SP2013 setup. This is not a straight forward operations due to the fundamentals of publishing content to subscribing site collections. To know more about this, please follow this link. It is really important to understand what exactly your customer scenario is and then further you can plan the upgrade. By tweaking few small requirement, lots of effort can be saved and importantly, the complexity is reduced. Further, coming back to the current topic. After the upgrade was completed and after couple of month, there was a requirement to change the HUB URI of the managed metadata service. This is a quite straight forward scenario, but this requires few &ldquo;After&rdquo; steps. First of all, make sure that, the HUB URL is unselected in the Managed Metadata proxy properties.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/7774.mmd.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/7774.mmd.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/7774.mmd.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/7774.mmd.png" alt="" border="0" /></a>&nbsp;</p>
<p>For Reference, below PowerShell can be used to update the managed metadata service hub uri</p>
<p>Set-SPMetadataServiceApplication -Identity "Managed Metadata Sercvice" -HubUri "New URL"</p>
<p>Once the New Hub URI is set, It is important that the content types needs to be republished to ensure that the HUB Uri will become effective for all the content published.</p>]]></content:encoded>
    </item>
    <item>
      <title>Search relevancy Cont...-  Explaining Thesaurus</title>
      <link>https://docs.microsoft.com/archive/blogs/ashishranjan/search-relevancy-cont-explaining-thesaurus</link>
      <pubDate>Tue, 04 Nov 2014 15:03:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Ranjan (MSFT)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ashishranjan/2014/11/04/search-relevancy-cont-explaining-thesaurus/</guid>
      <description><![CDATA[What does it Mean :
Adding Thesaurus&nbsp;or Synonyms is one of the first things to improve search...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;"><strong>What does it Mean :</strong></span></p>
<p>Adding <span>Thesaurus&nbsp;</span>or Synonyms is one of the first things to improve search engine intelligence. &nbsp;This is a mean to explain the search engine to depict a meaning for another word, abbreviation or Notation. Using PowerShell, an administrator can upload a list of <span>Thesaurus&nbsp;</span>to the Search Service application. Please note that , you will have to maintain this particular list of <span>Thesaurus&nbsp;</span>&nbsp;in future, any additions should be appended to this document and then further should be uploaded again using PowerShell.</p>
<p>The dictionary is always overwritten, it does not append information to it.</p>
<p><strong><span style="font-size: small;">Where can you use:</span></strong></p>
<p>For example , when your users are searching for a business unit, they tend to type the short form of that Business unit , and they expect results with the business unit which they have searched.&nbsp;<span>Thesaurus can be a help here, just import a file (csv) to the Enterprise Search with the Business unit name (short Form) and the complete form, so that Search engine can look for the complete name even though the short form was searched. Another situation can be change of organization name. Lets say , an organization which was called VBU (Vertical Business Unit) is renamed as BVO (Business&nbsp;Vertical Organization), with the fact that all the old document must be referring VBU , when a user /employee search for BVO, he should get results from VBU too. Again&nbsp;<span>Thesaurus will handle this.</span></span></p>
<p><span style="font-size: small;"><strong>How can we do this:</strong></span></p>
<p>Create a file with extension csv, and have three headers</p>
<p><em>Key,Synonym,Language</em></p>
<p>Start adding the keys and synonyms.For above scenarios, it will be</p>
<pre class="scroll"><code class="html"> Key,Synonym,Language<br /> VBU,Vertical Business Unit, en<br /> VBU, BVO,en<br /> BVO, Business Vertical Organization,en<br /> SP, SharePoint,en<br /> SP2013, SharePoint 2013, en<br /> admin, administrator,en</code></pre>
<p>For this Demo, In my Hyper -V , I have had few documents and I searched for "SP" , and I got 4 results as shown. While Searching for SP, I expected results for SharePoint as an user.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/7065.before.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/7065.before.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/7065.before.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/7065.before.png" alt="" border="0" /></a></p>
<p>Now We import the csv file with Thesaurus to search service application, and now this dictionary is added for the content processing engine to be able to provide us some relevant results.</p>
<p>We run following powerShell Scripts</p>
<pre class="scroll"><code class="js"> Add-PSSnapin "Microsoft.SharePoint.PowerShell"<br /> #Get service application<br /> $mySearchServApp = Get-SPEnterpriseSearchServiceApplication<br /> #import the thesaurus file with data.<br /> Import-SPEnterpriseSearchThesaurus -SearchApplication $mySearchServApp -FileName \\sp15\SearchRel\Thesaurus\Sample.csv</code></pre>
<pre>Please Note: File Name is in form of UNC path.</pre>
<pre>It should complete with success message as shown below.</pre>
<pre><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/6763.ImportSuccess.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/6763.ImportSuccess.PNG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/6763.ImportSuccess.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/6763.ImportSuccess.PNG" alt="" border="0" /></a></pre>
<pre>And Now We search for same "SP", and we have results which I was expecting.</pre>
<pre>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3835.After.PNG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3835.After.PNG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3835.After.PNG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3835.After.PNG" alt="" border="0" /></a></pre>
<pre>&nbsp;</pre>
<p>&nbsp;You do not even need a crawl before you can start seeing the effect of added synonyms. Thesaurus are powerful and easy to implement and can make a hugh improvement in user experience.</p>
<p>Cont...</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Consuming SP2013 Search on SP2010 Farm : A step towards moving to SP2013</title>
      <link>https://docs.microsoft.com/archive/blogs/ashishranjan/consuming-sp2013-search-on-sp2010-farm-a-step-towards-moving-to-sp2013</link>
      <pubDate>Wed, 29 Oct 2014 15:13:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Ranjan (MSFT)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ashishranjan/2014/10/29/consuming-sp2013-search-on-sp2010-farm-a-step-towards-moving-to-sp2013/</guid>
      <description><![CDATA[First Search Migration approach is way where you take your first step towards SharePoint 2013. Also,...]]></description>
      <content:encoded><![CDATA[<p>First Search Migration approach is way where you take your first step towards SharePoint 2013. Also, this gives you an option to utilize the powerful search as early as possible in this move. Read more about this by searching "First Search Migration Approach" . Following were the main steps for consuming the Search service application from SP2013 environment.</p>
<p>&nbsp;</p>
<h2>Step 1: Setting Up Trust across Farms</h2>
<p>To enable federated search across two versions of SharePoint Search (SP2010 and Sp2013) , first, there should be trust enabled between both the farms (SP2010 and SP2013). We will refer SP2010 as Consuming Farm and SP2013 as Publishing Farm or provider farm.</p>
<p>An administrator of the consuming farm must provide two trust certificates to the administrator of the publishing farm a root certificate and a security token service (STS) certificate. Additionally, an administrator of the publishing farm must provide a root certificate to the administrator of the consuming farm. By exchanging certificates, each farm acknowledges that the other farm can be trusted.</p>
<p>Run the following script on the Consuming farm (SP2010) by an administrator to export the SharePoint Root and STS certificates.</p>
<table border="0">
<tbody>
<tr>
<td>
<p>#Export the Farm and STS certificates from the SharePoint 2010 farm:</p>
<p>$rootCertificate = (Get-SPCertificateAuthority).RootCertificate</p>
<p>$rootCertificate.Export("Cert") | Set-Content C:\Certificates\2010FarmRoot.cer -Encoding byte</p>
<p>$stsCertificate = (Get-SPSecurityTokenServiceConfig).LocalLoginProvider.SigningCertificate</p>
<p>$stsCertificate.Export("Cert") | Set-Content C:\Certificates\2010FarmSTS.cer -Encoding byte&nbsp;</p>
</td>
</tr>
</tbody>
</table>
<p>Then Run the below script to export the SharePoint Root certificate on Publishing Farm (SP2013).</p>
<table border="0">
<tbody>
<tr>
<td>
<p>#Export the Farm certificate from the SharePoint 2013 farm:</p>
<p>$rootCertificate = (Get-SPCertificateAuthority).RootCertificate</p>
<p>$rootCertificate.Export("Cert") | Set-Content C:\Certificates\2013FarmRoot.cer -Encoding byte&nbsp;</p>
</td>
</tr>
</tbody>
</table>
<p><br />Import the consuming farm (SP2010) certificates on publishing farm (SP2013) using the following scripts</p>
<table border="0">
<tbody>
<tr>
<td>
<p>$trustCertificate = Get-PfxCertificate C:\Certificates\2010FarmRoot.cer</p>
<p>New-SPTrustedRootAuthority "2013 Trust" -Certificate $trustCertificate</p>
<p>$stsCertificate = Get-PfxCertificate C:\Certificates\2010FarmSTS.cer</p>
<p>New-SPTrustedServiceTokenIssuer "2013 Trust" -Certificate $stsCertificate</p>
</td>
</tr>
</tbody>
</table>
<p>And Finally Import the Publishing farm certificate to consuming farm</p>
<table border="0">
<tbody>
<tr>
<td>
<p>Import the SharePoint 2013 certificate into the SharePoint 2010 farm:</p>
<p>$trustCertificate = Get-PfxCertificate C:\Certificates\2013FarmRoot.cer</p>
New-SPTrustedRootAuthority "2013 Trust"-Certificate $trustCertificate&nbsp;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2><span>Step 2: Setup Search and Publishing</span></h2>
<p><span style="font-size: 1.5em;">&nbsp;</span>Once the trust is setup, The Search service application needs to be created and published for other farm to be able to consume it. it is recommend that search should be built using the PowerShell.</p>
<p>Do publishing of the search service application from the Central Administration portal.</p>
<p>After the Search is provisioned, Navigate to CA, and look for Search service application. Select the service application and click on the Publish button in the ribbon.On the popped out page, Select the checkbox &ldquo;publish this service for other farms&rdquo; and copy the URN after scrolling down the page for later use in consuming farm. Finally Click &ldquo;Ok&rdquo; to save the changes</p>
<h2>Step 3: Permissions</h2>
<p>This step is not required on Single Server farm setup. For Load, balanced environment following setup is required to allow service application to have appropriate permissions. This was not part of the POC. Hence, the steps are excluded from this document.</p>
<p>&nbsp;Please follow below TechNet article in case; this is required in future setups.</p>
<p><a href="https://technet.microsoft.com/en-us/library/ff700211(v=office.15).aspx">https://technet.microsoft.com/en-us/library/ff700211(v=office.15).aspx</a></p>
<p>&nbsp;</p>
<h2>Step 4: Connect to the Published service application</h2>
<p>After the publishing farm has published the service application, an administrator of the consuming farm can connect to that service application from the consuming farm by using the URL of the published service application. From the consuming Farm, Navigate to Manage Service application page in central Administrator (CA &gt;&gt; Application Management &gt;&gt; Manage service Applications)</p>
<p>Select in ribbon, Connect &gt;&gt; Search service proxy.</p>
<p>In the text box, enter the URL of the published service application URL. Click Ok, and the service application from the published farm will appear. Select the Search Service application. Click Ok to create the service proxy for Search from the publishing Farm.</p>
<h2>Step 5: Associate Service application with the Web Application</h2>
<p>The web application, which should be crawled from the publishing farm, requires being associated with this service application proxy. Make sure the proxy is added to web application from CA &gt;&gt;Application Management &gt;&gt;Service applications &gt;&gt; Configure Service application Associations.</p>
<p>&nbsp;</p>
<h2>Step 6: Configure Server-to-Server authentication between farms</h2>
<p>To enable a web application or an application service to request a resource from a web application on another farm on behalf of a user, you must configure server-to-server authentication between the farms.&nbsp;</p>
<p>The scripts needs to be run to enable S2S.</p>
<table border="0">
<tbody>
<tr>
<td>
<p>&nbsp;</p>
<p>##Setup of the final stage during publishing</p>
<p>$security=Get-SPTopologyServiceApplication | Get-SPServiceApplicationSecurity</p>
<p>$claimprovider=(Get-SPClaimProvider System).ClaimProvider</p>
<p>$principal=New-SPClaimsPrincipal -ClaimType "https://schemas.microsoft.com/sharepoint/2009/08/claims/farmid" -ClaimProvider $claimprovider -ClaimValue &lt;farm id of consumer farm&gt;</p>
<p>Grant-SPObjectSecurity -Identity $security -Principal $principal -Rights "Full Control"</p>
<p>Get-SPTopologyServiceApplication | Set-SPServiceApplicationSecurity -ObjectSecurity $security&nbsp;</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>Step 7: Configure Content Source</h2>
<p>This is final stage where content source is configured on publishing farm. Make sure that the content crawling account has &ldquo;Full Read&rdquo; permissions on the Web application running in consumer farm.&nbsp;</p>
<p>From the Publishing farm, Navigate to Search service application. Click on Content source and add the web application URL for the crawling. After the Full crawl, the content can be searched from Consuming farm.</p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint AlwaysOn Setup - Access denied for File Share</title>
      <link>https://docs.microsoft.com/archive/blogs/ashishranjan/sharepoint-alwayson-setup-access-denied-for-file-share</link>
      <pubDate>Wed, 29 Oct 2014 12:57:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Ranjan (MSFT)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ashishranjan/2014/10/29/sharepoint-alwayson-setup-access-denied-for-file-share/</guid>
      <description><![CDATA[I was doing an Always on setup for SharePoint 2013 setup, On the final stages, when i was performing...]]></description>
      <content:encoded><![CDATA[<p>I was doing an Always on setup for SharePoint 2013 setup, On the final stages, when i was performing addition of some more DBs into the availability groups, on the wizard, We got struck with file Share Check. There was an access denied error. I tried accessing the file share, I was not able to access it.</p>
<p>First Thing, That stroke me was , the Install account should have access on this file Share. &nbsp;I added that. Now, I can access them on the Windows explorer. Re-ran the wizard, still File Share Validation failed.</p>
<p>Closer look onto the error message , will help you understand the issue. As it was the Availability group which was trying to restore the DBs onto the file share, SQL account required access to read/write onto that shared folder. &nbsp;As we granted the access, Validation completed with Success, and the wizard.</p>
<p>Happy Learning!</p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2013 Search OOB Relevancy Techniques -1</title>
      <link>https://docs.microsoft.com/archive/blogs/ashishranjan/sharepoint-2013-search-oob-relevancy-techniques-1</link>
      <pubDate>Fri, 03 Oct 2014 14:57:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Ranjan (MSFT)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ashishranjan/2014/10/03/sharepoint-2013-search-oob-relevancy-techniques-1/</guid>
      <description><![CDATA[SharePoint 2013 has a really powerful Search capabilities. It is quite important to understand /...]]></description>
      <content:encoded><![CDATA[<p>SharePoint 2013 has a really powerful Search capabilities. It is quite important to understand / know , how these capabilities can be used to fulfill business needs. For a end user, it is quite important that he finds the stuff as fast as possible and that contribute to organizational productivity directly. I am planning to cover all OOB ways of improving relevancy of search results in this series of posts.</p>
<ol>
<li><a title="Using Thesaurus (Synonyms)" href="https://blogs.msdn.com/b/ashishranjan/archive/2014/11/05/search-relevancy-explaining.aspx">Using Thesaurus (Synonyms)</a></li>
<li>Entity Extractor</li>
<li>Query Rules</li>
<li>Spelling Corrections</li>
<li>Authoritative Pages</li>
<li>Query Suggestions</li>
<li>Building Verticals</li>
</ol>
<div>I will continue to add detailed content about these &nbsp;relevancy techniques with some scripts and live examples.</div>
<div>Stay Tuned :)</div>]]></content:encoded>
    </item>
    <item>
      <title>Windows 10 - Tech Preview – Get Started</title>
      <link>https://docs.microsoft.com/archive/blogs/ashishranjan/windows-10-tech-preview-get-started</link>
      <pubDate>Wed, 01 Oct 2014 13:22:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Ranjan (MSFT)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ashishranjan/2014/10/01/windows-10-tech-preview-get-started/</guid>
      <description><![CDATA[Here it is ...
now how can you get going with it.
First Thumb rule, do not try this on your...]]></description>
      <content:encoded><![CDATA[<p>Here it is ...</p>
<p>now how can you get going with it.</p>
<p>First Thumb rule, do not try this on your Primary System. Windows team is still working on several things. It&rsquo;s just a preview (TEASER) for all. So, First thing to do is to navigate to <a href="https://insider.windows.com/">Windows Insider</a> portal, and Join the program by clicking Join button.&nbsp; And you are registered as Insider.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/8081.blogs.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/8081.blogs.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/8081.blogs.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/8081.blogs.png" alt="" border="0" /></a></p>
<p>Click on the Install Technical Preview link from the welcome page and you will navigate to another page where you have download links. it has links for minimum hardware requirements.along with that it has &nbsp;the Product Key for this windows 10 . Keep the code handy to be used.</p>
<p>I used my Azure subscription to quickly provision a windows 8.1 Virtual Machine on Azure IAAS. Quite simple and easy. If you are not sure how to setup that, please read <a href="https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-tutorial/">this</a>.</p>
<p>Now from the download links, I started downloading the binaries for windows 10.Wait for 5-10 minutes and you are all set to upgrade your machine (in my case a virtual Windows 8.1 installation) to Windows 10.</p>
<p>Once download has completed, Mount the downloaded iso file and run the setup.exe file with admin rights.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3438.1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3438.1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/3438.1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/3438.1.png" alt="" border="0" /></a></p>
<p>Accept the terms and condition after reading it and accept to start the update. After a while, you should another prompt to retain your files or start from scratch .</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/2376.2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/2376.2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/2376.2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/2376.2.png" alt="" border="0" /></a></p>
<p>I wanted to keep my file so proceeded with default option. And after a while, the upgrade starts</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5481.3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5481.3.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/67/56/5481.3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-67-56/5481.3.png" alt="" border="0" /></a></p>
<p><span style="font-size: small;"><strong>ENJOY and EXPLORE</strong></span></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Azure Search - Get Ready for some action</title>
      <link>https://docs.microsoft.com/archive/blogs/ashishranjan/azure-search-get-ready-for-some-action</link>
      <pubDate>Tue, 30 Sep 2014 02:49:00 GMT</pubDate>
      <dc:creator><![CDATA[Ashish Ranjan (MSFT)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ashishranjan/2014/09/30/azure-search-get-ready-for-some-action/</guid>
      <description><![CDATA[Few Days Ago, another new service was made available on Azure , categorically called as "Search as a...]]></description>
      <content:encoded><![CDATA[<p>Few Days Ago, another new service was made available on Azure , categorically called as "Search as a Service". This enables a PAAS feature in azure to enable organizations to use enrich search capability . This allows users to manage&nbsp;Full text search and build search enabled applications.</p>
<p>It is integrated with Azure portal and available for provisioning under Data Storage, Cache and Back Up section. Also, it will be available from quick menu as shown below.</p>
<p><img class="ms-rteImage-1" style="margin: 5px; width: 441px;" src="https://ranjanashish-public.sharepoint.com/SiteAssets/Lists/Posts/AllPosts/createSearch.png" alt="createSearch.png" /></p>
<p>The Azure Search works on its&nbsp;​API &nbsp;and should be used by developers to utilize the search service to create indexes, upload files for the indexing and finally make it available as a search result. &nbsp;Azure Search will take out the burden of setting up search service infrastructure and repetitive labor and&nbsp;cost of&nbsp;managing these services. Also, It is really easy to scale out this as shown below.</p>
<p><img class="ms-rteImage-1" style="margin: 5px; width: 462px; height: 231px;" src="https://ranjanashish-public.sharepoint.com/SiteAssets/Lists/Posts/AllPosts/scakle.png" alt="scakle.png" /><br />As of now, Its the developer community who can leverage on this and can build solutions which are really dependent of high performing search service. I found a really nice article explaining creation of Indexes and finally searching it from Azure Search.</p>
<p>Please refer <a href="https://azure.microsoft.com/en-us/documentation/services/search/">this</a>&nbsp;</p>
<p>In Nut Shell,</p>
<p>Azure Search is a indexing service which will allow a provisioned​ service which is capable to delivering high query per second(50-60) and can be scalable further if further needed.</p>]]></content:encoded>
    </item>
  </channel>
</rss>