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


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:  (in this case a powerpoint presentation)  This is correct!

The link you go to if you click is:

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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Justin SmithSr. System EngineerCommented:
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?  
brl8Author Commented:

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://servername:3333    Default   http://servername:3333  (don't know what this is)

Thanks!!!  BRL
Justin SmithSr. System EngineerCommented:
tHe line that has intranet in one column and in the other is throwing it off.  Why do you have this entry?  Are you using an ISA server or TMG server?
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

brl8Author Commented:
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 and servername?  Could that be causing a problem?

Justin SmithSr. System EngineerCommented:
If they go to the same web app, then yes.
Justin SmithSr. System EngineerCommented:
I mean, you could remove servername from the content source.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brl8Author Commented:
Thanks, I'm going to try that soon and let you know what happens
brl8Author Commented:

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: 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!
brl8Author Commented:
Getting somewhere.  

I set up my AAM correctly with as default.

I set up my content sources as follows:

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, 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...

Justin SmithSr. System EngineerCommented:
verify your crawl account has read access on the web application through a user policy
brl8Author Commented:
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.
brl8Author Commented:
After I disabled the loopback check as described here:

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.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.