Tag: SharePoint 2010

Sharepoint Thesaurus

For the search service to provide results on synonyms of a site name, we need to add the synonyms to the ‘Thesaurus’ file.

The Thesaurus files are located in 2 locations on APP server (sp-app1). A total of 4 files need to be changed for the search to function properly.

Here are the file names and their locations.

File Names: tsenu.xml, tsneu.xml
Files Location: c:\program files\Microsoft Office Servers\14.0\Data\config
Files Location: C:\Program Files\Microsoft Office Servers\14.0\Data\Office Server\Applications\[GUID of search application]\Config

Open the xml file and you will see an example of how the synonyms should be formatted. Here is an example of a complete file:


Checking if a site exists

protected internal static bool DoesSiteExist(string URL)
{
try
{
using (SPSite site = new SPSite(URL))
{
using (SPWeb web = site.AllWebs[GetServerRelUrlFromFullUrl(URL)])
{
return web.Exists;
}
}
}
catch (FileNotFoundException)
{
return false;
}
}

protected internal static string GetServerRelUrlFromFullUrl(string url)
{
int index = url.IndexOf(“//”);
if ((index < 0) || (index == url.Length - 2))
{
throw new ArgumentException();
}
int startIndex = url.IndexOf('/', index + 2);
if (startIndex < 0)
{
return "/";
}
string str = url.Substring(startIndex);
if (str.IndexOf("?") >= 0)
str = str.Substring(0, str.IndexOf(‘?’));
if (str.IndexOf(“.aspx”) > 0)
str = str.Substring(0, str.LastIndexOf(“/”));
if ((str.Length > 1) && (str[str.Length - 1] == ‘/’))
{
return str.Substring(0, str.Length – 1);
}
return str;
}


Export Import

SharePoint 2010 Granular Backup-Restore Part 1

RATE THIS
Russ Maxwell 21 Oct 2009 1:44 PM 16
Hello! Russ Maxwell here and I’d like to provide a glimpse into SharePoint 2010 granular backup/restore. Several things have changed and have been improved in this area. This article is specifically themed around granular backup\restore and what you need to know.

Key Concepts:

Granular Backup: Granular backup has been placed into its own section within Central Administrator. This includes multiple options including the following options:

· Perform a site collection backup

· Export a site or list




  • Cloud World

  • Custom Search




  • Cyberbrutus
    iDream theme by Templates Next | Powered by WordPress

    Switch to our mobile site