To add a new collection, perform the following tasks:
Click Configurations tab.
Select the configuration from the configuration list.
Click Virtual Servers tab.
Select the virtual server from the virtual server list.
Click Search tab.
Under the Search Collections section, click Add Search Collection button to add a new search collection.
The following section describes the fields in the page for creating a new search collection:
Provide Search Collection Information
Collection Name — Enter a unique name for the search collection.
Multi byte characters are not allowed as collection name.
Display Name — (Optional) This will appear as the collection name in the search query page. If you do not specify a display name, the collection name serves as the display name.
Description — (Optional) Enter text that describes the new collection.
Path — You can either create the collection in the default location or provide a valid path, where the collection will be stored.
Provide Indexing Information
Directory to Index — Enter the directory from which documents will be indexed into the collection. Only the directories visible from this virtual server can be indexed.
Sub Directory— Enter the sub directory from which documents will be indexed into the collection. Sub directory path should be relative to the directory path specified earlier.
Pattern — Specify a wildcard to select the files to be indexed.
Use the wildcard pattern judiciously to ensure that only specific files are indexed. For example, specifying *.* might cause even executable and Perl scripts to be indexed.
Subdirectories— Enabled/Disabled. If you select this option, documents within the subdirectories of the selected directory will also be indexed. This is the default action.
Default Document Encoding —
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.
Step 3: View the Summary
View the summary and click Finish button to add the new collection.
For adding a search collection through CLI, execute the following command.
wadm> create-search-collection --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri=/search_config1 --document-root=../docs searchcoll
See CLI Reference, create-search-collection(1).