Sun Java System Web Server 6.1 SP11 Administrator's Guide

Creating a Collection

Collections are created and managed from the administrative interface. You create a new collection by specifying the documents to be indexed.

To create a new collection, perform the following steps

ProcedureTo create a new collection

  1. Select the virtual server in which you want to create a collection, and click the Manage button.

  2. Select the Search tab and then click the Create Collection link.

  3. Enter the following information:

    • Directory to Index: From the drop-down list, select the directory from which documents will be indexed into the collection. Only the directories visible from this virtual server will be listed.

      To view the contents of the directory, click View. If the selected directory has subdirectories, these are listed out in the “View directory_name” page. To select a directory to index, click index. To view a directory, click on the folder.

      In order to add a directory to the list of indexable directories, you must first create an additional document directory. For more information, see Setting Additional Document Directories.

    • Collection Name: Enter a name for the collection.

    • Display Name: (Optional) This will appear as the collection name in the search query page. If you don’t specify a display name, the collection name serves as the display name.

    • Description: (Optional) Enter text that describes the new collection.

    • Include Subdirectories? If you select No, documents within the subdirectories of the selected directory will not be indexed. The default is Yes.

    • Pattern: Specify a wildcard to select the files to be indexed. For more information on wildcards, see Wildcards Used in the Resource Picker.


      Caution – Caution –

      Use the wildcard pattern judiciously to ensure that only specific files are indexed. For example, specifying *.* might cause even executables and perl scripts to be indexed.


    • Default Encoding: Specify the character encoding for the documents to be indexed. The default is “ISO-8859-1.” The indexing engine tries to determine the encoding of HTML documents from the embedded meta tag. If this is not specified, the default encoding is used.

      Documents in a collections are not restricted to a single language/encoding. Every time documents are added, only a single encoding can be specified; however, the next time you add documents to the collection, you can select a different default encoding.

  4. Click OK.

    This creates a new collection by the specified name in the following location:

    <instance-root>/collections/<vs-id>/<collection-name>

    It also creates an appropriate SEARCHCOLLECTION entry in the server.xml file.