Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We have hundreds of subsites, one for each project. Inside each subsite, different document libraries and content types.

Sometimes when searching, we get matches from different subsites.

How can I add a refiner for the subsite name? Is there a managed property for this? Or does it need to be a custom refiner?

share|improve this question

3 Answers 3

up vote 0 down vote accepted

Here is the solution:

  • Go to Search Center Site > Site Settings > click Search Schema under Site Collection Administration
  • Type refinablestring in the Managed property text box enter image description here

  • Click on the RefinableString02( you can select any other refinablestring) and Edit it

  • Add ows_SiteName in the Mappings to crawled properties and Give a unique Alias name. I have put MainSiteName2 enter image description here
  • Click OK enter image description here
  • Go to Central Administration > click Manage service applications under Application Management
    enter image description here
  • Click on Search Service Application enter image description here
  • Click on Search Schema under Queries and Results
    enter image description here
  • Type refinablestring in the Managed property text box(Same as before)
  • Click on the RefinableString02 and Edit it
  • Add ows_SiteName in the Mappings to crawled properties.(This time Alias name does not require) enter image description here
  • Click OK enter image description here
  • Now Click on the Content Source under Crawling
  • Start Full Crawl and let it complete enter image description here
  • After Full crawl completion go to the Search Center site and Navigate to your search page. In my case results.aspx
  • Edit the Page and Edit the Refinable WebPart enter image description here
  • Click on the Choose Refiners...
    enter image description here
  • Add RefinableString02 as shown below: enter image description here enter image description here
  • Write Site Name in the Display name text box. enter image description here
  • Click OK Button
  • Click OK in the Refinement Web Part Pannel.
    enter image description here
  • Publish the page enter image description here

Enjoy!!!

share|improve this answer

SiteTitle is a Managed Property in search but it is not set to be "refinable" by default. Go to Central Admin > Service Applications > Search Service and then Search Schema. Search for "SiteTitle" in the managed properties. You'll see that the property is set to "Queryable" and "Retrievable" but not refinable. Edit the Managed Property and set it to be Refinable - Yes, Active. Run a full crawl. Now the property can be shown as a refiner.

To set up the Refiner (I'm assuming you already have a Refinement web part on the page), edit the web part and "Choose Refiners". Now that you've done the first step, you should see "SiteTitle" under the list of available refiners.

share|improve this answer

I will admit I haven't tried this yet, but I was looking at the instructions for adding refiners here: http://blogs.technet.com/b/tothesharepoint/archive/2013/11/11/how-to-add-refiners-to-your-search-results-page-for-sharepoint-2013.aspx

Took a look at the available mappings (as part of my own question I'm trying to answer) and noticed in the SharePoint category there is a property of ows_Site which may be what you are looking for.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.