No search results for anything other than a test site

Hello.

I have a host named site collection based sharepoint2013 installation. I set the root site for the HNSC in the content sources and can with no errors in the query history or logs other than a message that the hostsite collection couldn't be crawled because of permissions, but the error showed the site as http instead of https. I checked the permissions on the site and they are there for the search account.

I checked the document library settings and searching is allowed. However, whenever I search either at the document library page or on the enterprise search center I get no results for any documents. It does however index the mysites, which do return in the search, but they are under the rootsite URL.

Now, to test, I added another web application and site collection and associated it to the search service. I uploaded some documents to it. When I search it does not return results for that other site collection either, however, if I search on the name of a library it will return that.  For example if I search on 'documents' it returns:

Test

Newest Documents  hostname:17078

Test - Documents

hostname:17078/Documents/Forms/AllItems.aspx

Test - Form Templates

Type    Name    Form Name    Form Description There are no items to show in this view of the "Form Templates" document library To add a new item, click "New" or "Upload hostname:17078/FormServerTemplates/Forms/All Forms.aspx

But it won't return anything to do with the content in any of the sites.

Once upon a time search was working. Since then a couple of things happened.

  1. I changed the servers IP address to move it to a more secure subnet.
  2. It was changed to SSL https from http. I've checked every setting I can think of and made sure that everything is set as https, however, the crawl log error about not being able to crawl the site collection over http makes me wonder if something is up with this. How do I tell it to crawl the host named site collection over https instead of https? Because it's a HNSC I have only the rootsite listed in the content source.

Help!!




  • Edited by Tormak Tuesday, January 13, 2015 5:58 AM
January 13th, 2015 6:16am

Hi Tormak,

According to your description, my understanding is that no resultes returned when you searched documents for a host named site collection or other site collections. Is it right?

Please make sure you have done a crawl after you uploaded documents into these site collections.

For the host named site collection, make sure the url of it is in default zone for the web application.

For the content source, in the Crawl Settings, make sure you select Crawl everything under the hostname for each start address.

Create a crawl rule for the host named site collection to specify a differnet account who have at least read permission on the host named site collection.

Create a crawl rule:

http://www.c-sharpcorner.com/UploadFile/40e97e/create-crawl-rule-in-sharepoint-2013/

Best Regards,

Wendy

Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.co

January 14th, 2015 8:39am

Hi Wendy,

I was able to resolve the issue on my own. It was a confluence of a few things:

  1. When I converted the site to SSL I marked the option to enforce SSL in IIS. That meant that the default site was no longer accessible via HTTP. I also added the HTTPS URL for the Extranet zone but the default zone was still HTTP. Shortly after reading this I discovered that the crawler uses only the default zone.  I had the mysite on the https URL of the root site but that was being crawled successfully for some reason.
  2. In doing all of the troubleshooting portions of the search services were crashed or hung. I ended up restarting all of them.
  3. I rebuilt the index and recrawled all of the content. 

Once I had done all of the above it started working. 

Now I have to figure out how to redirect incoming users from the internet to the HTTPS portion of the site without breaking all of this. Any suggestions?

January 14th, 2015 7:07pm

Hi Tormak,

As this is a different question with the original question, I would suggest you post it in a new thread, it would make others easier to focus on one question in one single thread and it will benefit other community members who stuck with the same question.

Best Regards,

Wendy

Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

Free Windows Admin Tool Kit Click here and download it now
January 15th, 2015 4:19am

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

Other recent topics Other recent topics