none
Host Header Site Collection - Search

    Question

  • Hello,

    I have a SharePoint 2013 deployment that is using host header site collections. I have a web app called http://webapp1 and there is a host header site collection called http://sitecollection1.webapp1.

    In this site collection there is content in lists and pages. When I create a content source no results are returned and I get error messages:

    When I create  content source as http://webapp1 I get error:

    The address could not be resolved

    When I create a content source as http://sitecollection1.webapp1 I get error:

    This URL is part of a host header SharePoint deployment and the search application is not configured to crawl individual host header sites. This will be crawled as a part of ....a start address

    No items are index and the item count shows as 0.

    I have added the disableloopbackcheck registry entry.

    There is a root site collection at http://sitecollection1.webapp1 and at http://webapp1

    The crawl account has full read access to all content.

    Any help would be appreciated.


    Brian Jones

    Sunday, January 26, 2014 5:26 PM

Answers

All replies

  • The root site collection of the Web Application needs to match the domain of the HNSC. For example, if you had HNSC's of https://<sites>.company.com, you would need a root site collection of https://<rootsitename>.company.com.

    You will then crawl https://<rootsitename>.company.com from search.


    Trevor Seward

    Follow or contact me at...
      

    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

    Sunday, January 26, 2014 5:32 PM
  • Thanks for that but I still a bit confused, sorry never worked with HNSC before. This is a screen shot showing my site collections list, edited a bit. Does this look right or am I missing something? And feel free to explain like I am 5 I wont be offended :)


    Brian Jones

    Sunday, January 26, 2014 6:00 PM
  • Take a look at this thread and let me know if it is of any help or too difficult to understand. It is the exact same scenario that you're facing:

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9449dfc7-ae0f-4bb4-b6ca-64f64c5e676e/indexing-hnscs-with-sp2013-enterprise-search?forum=sharepointadmin


    Trevor Seward

    Follow or contact me at...
      

    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

    Sunday, January 26, 2014 6:03 PM
  • Thanks will read it now.

    Brian Jones

    Sunday, January 26, 2014 6:03 PM
  • Hello,

    I raised a ticket with Microsoft support and they have managed to resolve the issue. The detailed resolution is below if anyone else has this issue.

    My SharePoint server was called SharePoint1

    I had created a WebApplication called http://webapp1

    I had created a path based root site collection called http://webapp1

    I had created a HNSC called http://site.webapp1

    What I needed to do to allow search to work was the following:

    Edit alternate access mappings for http://webapp1 and change the default zone to SharePoint1 and change the Internet zone to http://webapp1.

    In IIS add bindings for:

    SharePoint1

    webapp1

    site.webapp1

    In my content sources add:

    http://SharePoint1

    http://webapp1

    http://site.webapp1

    Now search works perfectly.


    Brian Jones

    Tuesday, January 28, 2014 10:39 AM