Link to home
Start Free TrialLog in
Avatar of brl8
brl8Flag for United States of America

asked on

MOSS 2007 problem with search results

Hello all,

I am having a problem with my SharePoint 2007 site.

The problem occurs when I am searching within a document library.  The search results look like this:

Document Name (links to document)
Text that includes highlighted search terms...
clickable hyperlink to the document properties

etc…

The first strange thing that is happening, is that when I hover over the document name link, the link that shows up in the tooltip is different from the link that you are taken to if you click.

The tooltip link says:  http://intranet.company.org/mysite/mydocumentlibrary/documentname.pptx  (in this case a powerpoint presentation)  This is correct!

The link you go to if you click is: http://intranet.company.org/mysite/mydocumentlibrary/Forms/DisplayForm.aspx?ID=1888

Here is the problem:

In some cases this second link above is broken and you are taken to: http://servername/mysite/mydocumentlibrary/Forms/DisplayForm.aspx?ID=1888

So when you click this link you get an error message "servername server not found."

So, my question is, do I have something wrong in my alternate access mappings, or do I need to go into the code behind the search results page and figure out what is going wrong there?  Or, do I need a DNS entry for SERVERNAME?

Any thoughts or resources will be greatly appreciated.
Avatar of Justin Smith
Justin Smith
Flag of United States of America image

1. In your content sources in Search, what URL's are being crawled?
2. Do you have any crawl rules set up?
3. What do your Alternate Access Mappings look like?  
Avatar of brl8

ASKER

Hi ACH1LLES,

1.  Content sources:  
http://servername:4444   (this is mysites, I think, which we don't use)
http://servername:5555   (this is CA)
http://servername:6666   (this is the SSP)

2.  We don't have any crawl rules set up.

3.  Alternate access mappings:
http://servername             Default   http://servername
http://<ip address of server> Intranet  http://<ip address of server>
http://intranet                    Custom   http://intranet.company.org
http://servername:3333    Default   http://servername:3333  (don't know what this is)

Thanks!!!  BRL
tHe line that has intranet in one column and intranet.company.org in the other is throwing it off.  Why do you have this entry?  Are you using an ISA server or TMG server?
Avatar of brl8

ASKER

I don't know why we have this line.  It was set up by a consultant this way.  We are not using a TMG or ISA server.  

Regarding the content sources:  do I need to have both intranet.company.org and servername?  Could that be causing a problem?

If they go to the same web app, then yes.
ASKER CERTIFIED SOLUTION
Avatar of Justin Smith
Justin Smith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brl8

ASKER

Thanks, I'm going to try that soon and let you know what happens
Avatar of brl8

ASKER

Hi ACH1LLES,

In my test environment, I removed the servername from the content source, then ran a full crawl.

I then remembered that my search scopes were set up as follows:

http://servername/site/document library

(this was the only way I could get them to work)

Since my search scopes were pointing to servername, I re-created my scopes like this:

http://intranet.company.org/site/document library

I then ran a full crawl and all my scopes now say "Item count 0" and "Total: error"

I'm going to research this a bit and see if I can figure out what is going on, but if anyone has any insights I'd love to hear them!
Avatar of brl8

ASKER

Getting somewhere.  

I set up my AAM correctly with http://intranet.company.org/ as default.

I set up my content sources as follows:
http://intranet.company.org/
http://servername/

Scopes and search are working perfectly in my test environment with this setup.  In my production environment, when I look at crawled content status for http://intranet.company.org, I am getting this error message:

"Access is denied.  Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content. (The item was deleted because it was either not found or the crawler was denied access to it.)"

More googling...

verify your crawl account has read access on the web application through a user policy
Avatar of brl8

ASKER

Yep, did that - it does.  Just to make sure I logged in as that account and made sure I could look at the content.  

Next I am going to try disabling loopback check...probably Monday morning when everyone's out.

http://support.microsoft.com/kb/896861
Avatar of brl8

ASKER

After I disabled the loopback check as described here: https://www.experts-exchange.com/questions/24576410/Sharepoint-Search-Failure.html?sfQueryTermInfo=1+10+30+disabl+loopback+sharepoint

then ran a full crawl, and updated my search scopes, everything is working as expected!

Thanks so much for pointing me in the right direction.

brl