Solved

Intranet HTML Search Engine Code Keeps Failing

Posted on 2006-07-24
6
175 Views
Last Modified: 2010-04-09
I am currently working on a project for work, which entails placing a search button on the Intranet.  I have the code in place but when I try to search for a document, I get the following message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I have the code below.  I have a feeling I am just missing something small.  Any help that can be given would be great.
Thank you!

HTML CODE:
<html>  
                <head>  
                <title>Search for documents</title>  
                </head>  
                <body background = "images/Tabackground.jpg" bgcolor="#FFFFFF">  
               
                <h2>Search for documents</h2>  

                <!--  Modify the following action to reflect the name of your search macro  -->  
                <!--  This can be a complete URL or a relative URL                          -->  
                <FORM NAME="search" ACTION="/cgi-bin/db2www/www/tatest/scripts/sample_search.ndm/output" METHOD="post">

                <!-- The following fields must be provided to the search macro, either as hidden fields or input fields  -->  
                <!--    Modify the index name and directory appropriately for the index being searched                   -->  
                <INPUT TYPE="hidden" NAME="frmIndexName" VALUE="taindex">
                <INPUT TYPE="hidden" NAME="frmDir" VALUE="/QIBM/UserData/HTTPSVR/index">  
                <INPUT TYPE="hidden" NAME="frmMapFile" VALUE="/QIBM/UserData/HTTPSVR/index/taindex.MAP_FILE">
                <INPUT TYPE="hidden" NAME="frmQueryType" VALUE="simple">  
                <INPUT TYPE="hidden" NAME="frmStartNum" VALUE="1">  
                <INPUT TYPE="hidden" NAME="frmPreference" VALUE="wildcard">  
                <INPUT TYPE="hidden" NAME="frmCaseSensitive" VALUE="no">  
                <INPUT TYPE="hidden" NAME="frmStemming" VALUE="no">  
                <INPUT TYPE="hidden" NAME="frmLogical" VALUE="AND">  
                <INPUT TYPE="hidden" NAME="frmPrecision" VALUE="100">  
                <INPUT TYPE="hidden" NAME="frmMaxCount" VALUE="10">
                <!-- New fields added -->
                <INPUT TYPE="hidden" NAME="frmFieldName" VALUE="BODY">
                <INPUT TYPE="hidden" NAME="frmSortOrder" VALUE="SORT_BY_RANK">
                <INPUT TYPE="hidden" NAME="frmAscDesc" VALUE="DESCENDING">

                <table>  
                <tr><td><b>Enter search terms :</b></td>  
                </tr>  
                <tr><td><INPUT TYPE="text" SIZE=50 NAME="frmSearchString" VALUE=""></td>  
                <td><INPUT TYPE="submit" NAME="Submit" VALUE="Search" ></td></tr>  
                </table>  
                </FORM>  
                </BODY>  
                </HTML>  
0
Comment
Question by:Robinkeeley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 19

Expert Comment

by:nschafer
ID: 17170309
Hi Robinkeeley,

First of all let's turn off friendly Error messages.  This will give more detail in finding the problem.

Click to Tool --> Internet Options --> Advanced.
   Uncheck Show Friendly HTTP error messages and click OK

Load the page again, and report back the error message


Neal.
0
 

Author Comment

by:Robinkeeley
ID: 17170444
Hello Neal,

I did what you asked above and got the same results.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
0
 
LVL 19

Accepted Solution

by:
nschafer earned 250 total points
ID: 17170561
Hmm,

Generally you should get more information after turning off the friendly error messages.  Specifically the file and line of code where the error is occuring and a more detailed error message.

In any case, let's see what we can find out.

Your form looks fine, and frankly shouldn't cause this type of error even if there were a problem in it.  The problem is most likely in the cgi script.  I'm not familiar with the script you are using.  I find reference to it on a couple of IBM sites, so I'm assuming it is a fairly standard script and not one you designed. The most likely thing I can think of as a problem, assuming the cgi script works at all is that you are not providing the field names it is expecting.

 
Neal.
0
 

Author Comment

by:Robinkeeley
ID: 17170638
Thank you for your help.  I will take a look at the IBM sites.  I had a feeling the my path was wrong, so I am going to continue to figure it out.

Thanks again for your help.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help with this homework problem. 5 78
Link not working 6 55
Anyone familiar with PhotoSwipe? 3 42
Need advice on an App idea......but who do I ask? 2 72
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question