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. You may also consult Installing Optional Software and Server Updates in the AIX Installation Guide.
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.
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.
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.
Remember to Install or register your documentation.
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.
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:
export DOCUMENT_SERVER_MACHINE_NAME=<servername> export 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:
If you ever want to re-register this same index, type (as root or a search administrator) the following:
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.
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.
However, there may be reasons that users want to see the documentation in some language other than the computer's current default locale.
The documentation language can be changed for all users on a computer, or it can be changed for a single user.
Note: These techniques will not affect the language that is used if you are opening a document or search form from an HTML link inside a document. These techniques only affect what language is used when you use the desktop icons or the docsearch command.
/usr/bin/chdoclang <locale>where <locale> is replaced by the locale that will be the new default documentation viewing and searching language. Locale names can be found in the AIX Language Support Table.
The chdoclang command adds the following line to the /etc/environment file:
DOC_LANG=<locale>
Note If the users are using a remote documentation server, the chdoclang command should be run on the user's client computer, not the remote server. Also, the language change will not take effect until the next time a user logs out and back into the computer.
For example, suppose that a computer's default locale is English. The users would normally see English documentation if they use the AIX Documentation Search Service or if they open the AIX Base Documentation.
If the system administrator now wants all the users to see Japanese documents instead of English documents, the administrator would run (as root) the following command:
/usr/bin/chdoclang Ja_JP
After users log out and then log back in, they will now see Japanese versions of the documentation instead of English versions.
Note: Before a computer can serve documents in a language, the AIX locale (language environment) for that language, and the translated versions of the documents must also be installed on the documentation server.
/usr/bin/chdoclang [-u UID|username] <locale>
where <locale> is replaced by the locale that will be the new language and <username> is replaced with the user's username. Locale names can be found in the AIX Language Support Table.
Running the command as described above will add the following line to the user's $HOME/.profile file:
export DOC_LANG=<locale>
where <locale> is the locale that will be the new default documentation viewing and searching language.
For example, if an administrator wanted to change the documentation language of user <fred> to be Spanish(es_ES), they would type the following command:
/usr/bin/chdoclang -u fred es_ES
Note: Defining the DOC_LANG environment variable in a user's .profile will take precedence over any global DOC_LANG setting in their computer's /etc/environment file. Also, for CDE Desktop you must uncomment the DTSOURCEPROFILE=true line in the $HOME/.dtprofile file, which causes the $HOME/.profile file to be read during CDE login. The change to user's documentation language will then take effect the next time the user logs out and then logs back in.
To delete the global system default documentation language setting, run (as root) the following command:
/usr/bin/chdoclang -d
To delete a single user's language setting, run (as root) the following commmand:
/usr/bin/chdoclang -d [UID|username]
For example, to remove the user <fred>'s personal language setting so that he will again use the system default language, run the following command:
/usr/bin/chdoclang -d fred