SharePoint 2010 Search from other site collection

Hi,

I want to search documents from another site collection which I can do by creating a content source and adding that site collection URL. My requirement is to search only particular documents from that site collection document library.

For E.g.- I want to search documents starting with keyword - [POL-HR], as the document name starts with POL-HR001.docx

Please advise how to create crawl rule for this requirement OR how it can be achieved.

I have tried the crawl rule - "http://<server-name>/Lists/<list-name>/^[POL]-[HR]" - Its not working

===========================================================

February 13th, 2015 1:21pm

Hi,

As I understand, you want to search the files named POL-HR in other site.

Follow the steps:

1. Create a custom search scope.

You can go to the site actions->site settings->search scopes->new scope-> type the name of the scope and choose Display Groups you want to add.

Then add the rules to the scope, choose web address in the scope rule type section, choose folder and input the URL of your library like http://<your site URL>/<library name> in the web address section, choose include in the behavior section.

After create the search scope, you should start full crawl in the search service.

The article below is about how to create a search scope for a list or a library.

http://www.bentedder.com/create-a-search-scope-for-a-sharepoint-2010-list-or-library/

 2. After create a search scope, you should add the scope to the display group. Click the display groups next to the new scope and add your scope to the search dropdown group.

The article below is about how to configure the scope.

http://www.surfray.com/blog/2013/06/17/how-to-configure-scopes-in-sharepoint-2010/        

3.  When you search, select the scope you want to search in, and input: Filename:POL-HR, then you can find the files named POL-HR in other site.

Best regards

Free Windows Admin Tool Kit Click here and download it now
February 16th, 2015 4:39am

Hi Sara,

Thanks for the reply. But we are using SharePoint OOTB "Search Box" on our custom page and search target page is also a custom search page. So users don't want to write - Filename:POL-HR. Users will search only writing a keyword in search box.

Also, will the above solution will only search documents in other site collection starting with POL-HR and will not crawl and search other documents (business requirement) ? I doubt this. Please confirm.

February 16th, 2015 5:58am

Crawling happens once. If you want a file to be retrievable in any search, anywhere then the file must be crawled.

If you want one search box to find a file but another to not find it, based on title, location or other property, then you want a search scope.

You can set search terms to be automatically included on search results pages. There is lots of information about this available through search engines.

Free Windows Admin Tool Kit Click here and download it now
February 16th, 2015 6:10am

Hi Alex,

I agree with your above statements, however it would be great and helpful, if you can be more precise on my business requirement.

Business Requirement : There are two site collections, lets say A & B. I am using site collection A for HR Application where I have created custom publishing pages and on every page we have search box webpart, which is expected to behave same from all pages i.e. users will write a keyword in search box and will be redirected to a custom search page - HRSearch.aspx.

In site collection B, there is a doc library where thousands of documents are there along with HR policy documents but only HR documents starting with "POL-HR",  needs to be searchable in site collection A when users search for policy documents from search box.

Please provide a solution for the above requirement (E.g. - any crawl rule, search scope etc)

February 16th, 2015 6:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics