How to Set Specific Site Collection as SharePoint Search Scope using C#?

Let’s learn how to Set Specific Site Collection as SharePoint Search Scope using C#. The most accurate or helpful solution is served by SharePoint.

There are ten answers to this question.

Best solution

How to Set Specific Site Collection as SharePoint Search Scope using C#?

I have two site collections as Portal1 and Portal2. In Portal2, I have enterprise search centre and will add custom Search scope for Portal1 site collection using C#. I deployed project in Portal2 and activated feature. With properties.Feature.parent as SPSite, I got Site of Portal2. How can I get Portal1 (SpSite site)? scope.Rules.CreateUrlRule(ScopeRuleFilterBehavior.Include, UrlScopeRuleType.HostName, site.RootWeb.Url); Site.RootWeb.Url should get URL of Portal1. Thanks

Answer:

If you know the url of Portal1, you can directly use it instead of site.RootWeb.Url. If you need SPSite...

Read more

mkacar at SharePoint Mark as irrelevant Undo

Other solutions

Looking for a hosting site that will allow me to upload a MS access database & allow others permission to edit?

I'm currently working on a MS access 2007 database for a local online forum. I was planning on using Google Cloud to allow others to edit, add, search and access the database. However, I just learned that google cloud doesn't support MS access only word...

Answer:

Hostmatrix.org is offering 100% free webhosting, in fact right now you don't even have to post on the...

Read more

jaredmow... at Yahoo! Answers Mark as irrelevant Undo

Why do Indian historians refer to AKBAR as AKBAR THE GREAT?

This article is also available in Hindi athttp://agniveer.com/3209/akbar-g... Very chosen few legends in Indian history had the privilege of being honored with the suffix ‘the Great’ or ‘Mahaan’ after their...

Answer:

As per history books I came across  I opine that Akbar was really a  great ruler. In comparison to his...

Read more

Chaudhary Alha Singh at Quora Mark as irrelevant Undo

What about Skeptics of Buddhism, like us ? Please Patiently read everything.?

Buddhism for beginners (and sceptical Westerners) Introduction Now that Buddhism is such a fast-growing religion in the West, a lot of Westerners are attracted to its rational approach and rejection of an all-powerful deity. But all too often we Westerners...

Answer:

Dhamma friend, My master once told a Prof.of psychology from Cambrige U(a Buddhist as well) that he...

Read more

Thomas at Yahoo! Answers Mark as irrelevant Undo

How can I save a SharePoint 2010 Site Collection as a deployable Site Collection template?

My company currently creates a new site collection for each member of our audience when they sign up to our service. However, they create an empty site collection that requires our standard customisation on its root front page and I have to upload and...

Answer:

Technically you can't. There is not built in mechanism.  Of course we're talking about software so there...

Read more

Pat Esposito at Quora Mark as irrelevant Undo

Looking for site where I can search for movie showtimes using a map interface

Please help me find a site that lets me search for movie showtimes by geography (not just by zipcode or cityname). I've been wandering around the internet today trying to find showtimes for a couple of movies, and it made me wonder --- why isn't there...

Answer:

Google does seem to recognize nonstandard city names. I searched for 'movies bay area' and it gave me...

Read more

Susan PG at Ask.Metafilter.Com Mark as irrelevant Undo

Please remove site.www.dibros-pianos.com in using yahoo to search my web site yahoo added "site" to web site?

I am a customer of Yahoo...in trying to find my web site in Yahoo...Yahoo has it listed the following: site.www.dibros-pianos.com....there should not be the name "site" prior to www. I do not know why Yahoo puts the name "site" prior...

Answer:

Oscar, You are in the wrong part of the Yahoo empire. It's not Yahoo Answers that you want, it is instead...

Read more

Oscar Dimas at Yahoo! Answers Mark as irrelevant Undo

If a person has full ownership permissions to a SharePoint 2007 site collection, (1) can he or she cause serious damage to The Farm, and (2) how badly can they screw up that site collection?

Our enterprise people don't want to allow SPD use in our business unit, even though we have SharePoint solution providers who have proven themselves competent and conscientious, and who are are planning to send to SPD training at Mindsharp.  They say...

Answer:

1. They wont be able to damage the farm at all. 2. They can damage site collection pretty badly, unless...

Read more

Rohit Devmore at Quora Mark as irrelevant Undo

Set up web site search that finds all occurrences of a string?

I'd like to implement a search tool on my employer's web site that makes all of the matches for a search string visible on the results page. Currently, with Google custom search, we usually only see the first two or three matches on each page, and in...

Answer:

─────â...

Read more

Jim R at Yahoo! Answers Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.