Tag Archives: Search

SharePoint (MOSS) Search, wrong IP in HOSTS file

A customer recently had problems with crawling his Web Application. This problems were solved, but after that, the crawl broke again.

After some investigation, I found out that the IP address of the dedicated WFE for crawling was wrong. SharePoint entered the wrong IP address in the HOSTS file.

What happened?
I configured the Search Service to use one dedicated WFE for crawling. This is very useful, because the other two WFEs can be used for user access only (they are load balanced).

Here is a picture of that:

image

I discovered that the HOSTS file was filled with the first entry IPCONFIG shows on the target WFE:

image

The .178 was added to the HOSTS file, but not reachable from the index server, it should have been the .148. The crawl was impossible.

Solution:

I configured the search service on the index server to use all WFEs for crawling. This way, it does not touch the HOSTS file and I was able to enter the right address to it manually.

Thanks to http://www.mindsharpblogs.com/daniel/archive/2007/02/01/1518.aspx for guiding me in this direction.

Microsoft Office Sharepoint Server 2007 (MOSS) – Advanced Search – Turn on “contains” again

As you may have noticed the "contains" and "does not contain" search options were removed with build 6317.
contains-01

The reason for this is, that this options can heavily decrease performance. But you can simply turn the options on again:

1. Goto to the Advanced Search site and edit it
contains-02

2. Modify the "Advanced Search Box" Webpart
contains-03

3. Expand Properties and edit Properties
contains-04 

4. Find "Option Name=AllowOpContains" and change the Value to "True"
<Name=AllowOpContains" Value="False"> –> Contains option turned off
<Name=AllowOpContains" Value="True"> –> Contains option turned on
contains-05 
If you cannot find the entry, create it.

5. Click OK and publish the page.

Have fun!