VladBath

I am using the production version of MOSS 2007 Enterprise. Selecting the search scope "This Site" or "This List" and specifying information that demonstrably exists in either of these scopes does not appear in the search results. Indeed, searches in these scopes always return nothing.

"All Sites" searches appear to work nicely.

Any thoughts on how to correct this problem

Thanks,

Vlad



Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

Peter Ellis

I'm having the same issue with the same software. Results within a subsite return perfectly when searching through the "All Sites" scope, but the "This Site" or "This List" scope return nothing.

It seems like these should both be searching the same crawler data, so this is sort of baffling.




Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

Puneet Narula - MSFT

When you search for a keyword in This Site scope you are taken to osssearchresults.aspx. Look at the query string parameter u. "u" parameter has a url value. Is that a valid url value. Can you go to that url(after appropriately decoding it).

Most common problem that I have seen is that the alternate access mapping isnt correctly configured.

If you determine you do not need alternate access mapping or it is correctly configured then

Another thing to test is since your All Sites scope is working you can issue the same query against that scope with additional site:http://yoursiteurl

Does this get you results. If not then you should make sure you are actually crawling this site and the content that you are looking for is actuall crawled.

Hope this helps in figuring out your problem





Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

VladBath

I believe the alternate access mapping I have set up is working correctly. The URL translation appears to work in all other cases. Perhaps you could point me to a definitive source of information on this or describe in what way mappings have been set up incorrectly so that I can confirm the configuration is correct.

The site: refinement does not appear to work in the All Sites scope. It returns nothing.

I have executed the same query against the All Sites scope without the site: refinement and received the references I would expect to get from the site in question, indicating that the site is being crawled and indexed. This would imply a problem with extraction, not the crawling engine.





Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

Puneet Narula - MSFT

If you do the site: refinement on All Sites scope with correctly access mapped url does that work

In the mean time I will try and find how to setup access mapping correctly

-Puneet






Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

VladBath

To the best of my knowledge, my access mappings are correct. Here are the tests I have tried:

From a client, accessing MOSS using a mapped URL

All Sites - finds data

All Sites with sites: discriminator (with mapped URL) - no results

All Sites with sites: discriminator (with server name URL) - no results

This Site - no results

From the server, accessing MOSS using the raw URL

All Sites - finds data

All Sites with sites: discriminator (with server name URL) - no results

This Site - no results

I should note that any search with This Site scope uses a different search result page than the All Sites search. Since both return no results I am not sure if this is significant.





Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

SharePoint_d

I'm experiencing essentially the same problem.

I can get the default scope with no 'u=" parameter to work properly, but the site: refinement, as you put it, does make the search not work.


In my case however, using the correct internal URL does work. i.e. a search that specified u=(URLEncoded internal URL) does return results.

The added wrinkle in my case is the external URL is an extended application not just an alternate access mapping. i.e. I had to extend another application pointing to the same content database but with a different port number (port 80) for external users versus internal users, and when the URL to the external app is used, and my search string includes the u=(URLEncoded external URL) parameter, I get no results. As far as I can tell everything looks fine in terms of the alternate access mappings, but essentially searches don't work when the site is accessed from the external URL.

Any suggestions





Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

Puneet Narula - MSFT

Sorry this is not my area of expertise so I didnt have a solution or handle on what the problem can be. The one thing that I found is did you guys change the Url of the Default zone for the site If yes did you do a recrawl after that.

I will try recrawling in both ValdBath's scenario and SharePoint_d scenario and see if this works for you.

Typicaly you dont require a recrawl if you are not changing the default zone url while doing the access mapping.

-Puneet





Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

VladBath

My default URL is set to the server name running MOSS 2007. I have run multiple full recrawls since installation with no luck.





Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

SharePoint_d

This post gave me an idea, I checked the index server, and sure enough, it couldn't access the default zone of the site. I changed the default zone URL to something that the index server could access, recrawled, and a few hours later all the content was searchable!




Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

VladBath

I am glad this worked for you. Unfortunately, I do not have such luck.

My logs show that the default URL is fully accessible to the crawler (it is the raw server URL). I have verified my DNS settings are set up properly and I have tried searching using all the alternate mappings. All Sites returns results properly, This Site and This List do not.





Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

Ted Bouskill

We are having the same problem, however it is only happening in production NOT staging. Our production servers are load balanced (except the indexing server) but our staging servers are not.

The other odd thing is that one of our front end servers (not both) receives this publishing error when the This Site or This List fails:

Source: Office Sharepoint Server

Category: Publishing

Event ID: 5165

Console Configuration File Error: File Not Found: The system cannot find the file specified. (Exception HRESULT: 0x80070002)





Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

VladBath

Our production system is a small farm: one web server and one database server. No load balancing, no index server. We do not receive the error you report. The query simply returns no results.




Re: SharePoint - Search MOSS 2007 - This Site and This List Scopes Not Working

SharePoint_d

VladBath:

Perhaps the issue is that your search service account cannot access content on the site collection / application that is returning no results.

When you look at the crawl logs from the SSP's search settings / Crawl log link, do you see the appropriate number of items successfully crawled next to the URL for the problematic site coll / app How many errors If you look at the errors for the site collection, what do they say