This section provides information about installing and configuring the documentation search server, as well as the documentation search service.
The following main topics are covered:
For the documentation search service to function, the following is required: the documentation search service software, a web browser, web server software, the documents to be searched, and the document's indexes. The browser must be a forms-capable browser and the web server must be CGI-compliant.
A computer can be set up as either a documentation server or as a documentation client system. When users on a client computer request a search form or an html document, the request is sent to the web server on a documentation server which then sends back the requested object. When searches are done, they are done on the server computer and the results are then sent back to the user on the client computer.
A documentation server computer has installed on it the documentation search service, all the documents, the document indexes, and web server software. You only need to install the documentation search service client software and a web browser on a client computer.
If you have a standalone (non-networked) computer, both the server and client software are installed on the same standalone computer. Instead of going to a remote computer, requests from users on the standalone computer go to the web server software on their own computer. A documentation server on a network can also be made standalone in the sense that you can configure its web server software to only accept requests from users logged onto the documentation server computer.
Use this procedure if you want to set up a computer to be a documentation server. This is the computer where you want to install your online documentation. A server can be a networked computer that serves remote clients, or it can be a standalone computer that just serves its own users.
The next section covers the following procedures:
If the following software is not already installed on your system, please install it. If you aren't sure what is already installed, enter smit list_installed .
Consult the documentation that came with your web server software and configure and start your web server software. Write down the full pathnames of the webserver directories where the server starts looking for a) HTML documents, and b) CGI programs (if you are using the Domino Go webserver and you installed it in its default location, you can skip this step.). Also, some webservers may not automatically create these directories. If not, you must created them before you continue.
You must also configure your web server software to allow access from the users and remote computers that will be using this computer as their documentation search server.
Install the documentation search service (bos.docsearch, which is on the second AIX 4.3 CD). Install ALL parts of the package, except that if you are not using the CDE Desktop, you do not have to install the Docsearch Client - CDE Desktop Icons and Actions component.
You can configure the documentation search service by using either of the AIX System Management Tools, Web-based System Manager or SMIT.
For example, if you would type on a command line wonderbrowser -u http://www.ibm.com to open your wonderbrowser with the www.ibm.com page open inside, you would type wonderbrowser -u into the field. Many browsers (for example, netscape) do not require a flag.
Click on the OK
When the System Environments window appears, double-click on the Internet Environments icon to reopen it.
Note: If you have installed Lotus Domino Go or ICSS in a non-default location on your system, or you set up the servers to use non-standard locations for their cgi-bin or HTML directories, you must select Other.
The configuration for the new webserver software is now complete. Any users who were logged in when configuration was done must log out, and then log back in to activate the search service. You can now close the administration tool.
For example, if you would type on a command line wonderbrowser -u http://www.ibm.com to open your wonderbrowser with the www.ibm.com page open inside, you would type wonderbrowser -u into the field. Many browsers (for example, netscape) do not require a flag.
Press OK.
Note: If you have installed Lotus Domino Go or ICSS in some non-default location on your system, or you set up the servers to use non-standard locations for their cgi-bin or HTML directories, you must select Other. Press OK.
Remember that before any document can be searched using the documentation search service, it must have an index created and the index must be registered with the search service.
Some applications will ship pre-built document indexes inside their install packages. When the application is installed the indexes will be automatically registered. The AIX Version 4.3 documentation libraries and the Web-based System Manager ship pre-built indexes for their documents.
You can also create indexes for your own HTML documents and register them with the search engine so that they can be searched online. For more details, see the chapter Documentation Search Service in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs for more information.
Users can access the global search form by entering docsearch on the command line or by clicking on the search service icon in the CDE Desktop front panel Help subpanel. Search forms may also be launched from Search links inside the document pages of applications such as Web-based System Manager.
Use this procedure if you want to set up a computer to be a client of a remote documentation search server computer. When users on this computer want to search online documentation, the request will be sent to a remote documentation search server where the search will be conducted and the results then sent back to a web browser on this client computer. A documentation search server computer must be created before you create a client.
This next section covers the following procedures:
If the following software is not already installed on your client system, please install it. If you aren't sure what is already installed, enter smit list_installed .
You do not need to install the Docsearch Server fileset.
You can configure the documentation search service by using either of the AIX system management tools, Web-based System Manager or SMIT.
For example, if you would type on a command line wonderbrowser -u http://www.ibm.com to open your wonderbrowser with the www.ibm.com page open inside, you would type wonderbrowser -u into the field. Many browsers (for example, netscape) do not require a flag.
Click on the OK button.
When the System Environments window appears, double-click on the Internet Environments icon to open it.
The configuration for the new webserver software is now complete. Any users who were logged in when configuration was done must log out, and then log back in to activate the search service. You can now close the administration tool.
For example, if you would type on a command line wonderbrowser -u http://www.ibm.com to open your wonderbrowser with the www.ibm.com page open inside, you would type wonderbrowser -u into the field. Many browsers (for example, netscape) do not require a flag.
Press OK.
SMIT will then configure your client system. When it is done, you should see a Documentation server configuration completed! message at the bottom of the results pane.
Users on this client computer can access the global search form by typing docsearch on the command line or by clicking on the search service icon in the CDE Desktop front panel Help subpanel. Search forms may also be launched from Search links inside the document pages of applications such as Web-based System Manager.
This section contains instructions for changing the configuration of the documentation search service after it is initally installed and configured:
This process shows the default system documentation server settings. If a user has specified different settings in the .profile file in their home directory, they will not be affected by the default settings.
You can configure the documentation search service by using either of the AIX system management tools, Web-based System Manager or SMIT.
This configuration process changes the default system documentation server. If a user has specified a different server in their own .profile file in their home directory, they will not be affected by the default settings.
You can change a client computer's default remote documentation search server by using either of the AIX system management tools, Web-based System Manager or SMIT.
The reconfiguration is now complete. Any users who were logged in when configuration was done must log out, and then log back in to activate the search service. You can now close the administration tool.
All users on a computer do not have to use the same documentation search server. The system administrator sets the default server for users, but users can choose to use a different server.
There are two ways users can change documentation search servers
If the users wants to change their personal default documentation server they should use this technique.
The user should insert the following two lines in the .profile file in their home directory:
DOCUMENT_SERVER_MACHINE_NAME = <servername> DOCUMENT_SERVER_PORT = <portnumber>
The user must them log out and then log back in to see the changes take effect.
Once an individual users places these two lines in their .profile file in their home directory, changes that their system administrator makes to the system-wide default settings will not affect them. If they want to resume using the system default, they should remove the above two lines from their profile and then log out and log back in again.
In this case, a user doesn't want to change their default search server, they just want to do a single search of all the documents registered on another server. They should type the following into the URL location field of their browser:
http://<server_name> :[<port_number> ]/cgi-bin/ds_form
This will open into their browser the global search form of the document server with the name of the remote server given in <server_name> . <port_number> only needs to be entered if the port is different from 80 .
For example, if a user wanted to search the documents on a document server named "einstein", and the web server on "einstein" uses the standard port 80, they would enter this URL:
http://einstein/cgi-bin/ds_form
Once the search form for a server appears in their browser, the user can create a bookmark that will take them back to the server. The system administrator of a web server can also create a web page that contains links to all the different documentation servers in an organization.
In this case you have a client computer that is using a remote documentation server to search documents. You want to convert this client computer to be a search server so that the documents stored on this computer can be searched by the users on this computer or by remote users.
Go to the Server Installation section and follow the instructions there. Complete all of the tasks in that procedure. There is only one modification you need to make to the steps in that section. When you come to the task where you are instructed to install all of the documentation search service software, you only need to install the Docsearch Server component since you have already installed the client software onto this computer.
You can disable a server temporarily, or uninstall it permanently
There are several different techniques:
If you think you might ever want to re-register the index,you need to record the index's registry information before you remove it. To do this, type (as root or a search administrator) the following commands on a command line:
where <index_name> is replaced with the name of the index.
where you insert the values you recorded above in step 2.
If you are sure you want to permanently remove the search server functions, do the following:
Note: In each of the following steps make sure you do uninstalls using SMIT instead of just deleting software. Deletes will not clean up the system properly.
To unregister an index type (as root or a search administrator) the following:
rm -r /usr/docsearch/indexes/<index name>
where <index name> is the name of the index you want to remove.
All of the documentation serve functions should now be disabled. If the users of this computer were using this computer as their search server, you should go into SMIT and change the name of the default search server to another computer. See Changing a Client Computer's Default Remote Documentation Search Server.
The difference between a stand alone server and a public remote server is that the remote server allows people on other machines to access and search the documents stored on the remote server. After a standalone server is connected to a network, modify the web server's security configuration controls to allow users on other computers to access the documents on this computer. Consult the web server documentation for instructions on how to alter these access permissions.
This procedure changes the default browser that is used by applications that use the defaultbrowser command to open a browser window. You can changes the default browser by using either of the AIX system management tools, Web-based System Manager or SMIT.
For example, if you would enter on a command line wonderbrowser -u http://www.ibm.com to open your wonderbrowser with the www.ibm.com page open inside, you would type wonderbrowser -u into the field. Many browsers (for example, netscape) do not require a flag.
Press OK. Close SMIT.
Use this procedure if you have already configured a documentation server and you now want to change the web server software that it is using.
You must also configure your web server software to allow access from the users and remote computers that will be using this computer as their documentation search server.
Note: If you have installed Lotus Domino Go or ICSS in a non-default location on your system, or if you set up the web servers to use non-standard locations for their cgi-bin or HTML directories, you must select Other.
The configuration for the new webserver software is now complete. Any users who were logged in when configuration was done must log out, and then log back in to activate the search service. You can now close the administration tool.
Note: If you have installed Lotus Domino Go or ICSS in some non-default location on your system, or you set up the servers to use non-standard locations for their cgi-bin or HTML directories, you must select Other.Press OK.
The configuration for the new webserver is now complete. Any users who were logged in when configuration was done must log out, and then log back in to activate the search service.