This topic provides information about how to manage your search indexes with the IBM® Web Administration for i5/OS™ interface.
This topic explains how to manage search indexes for the Webserver search engine on HTTP Server. Set up the Webserver search engine on HTTP Server (powered by Apache) to learn how to create a search index.
The following topics explain how to manage your search index.
After creating a search index, you will want to update it when ever you change the documents being searched. For example, if you add additional content to some of your files, that content will not be found in using the Webserver search engine until you update your search index. You can add new or changed documents or delete documents from the index. If documents are added, they will be indexed and added to the supplemental index. Use the fields to specify information about the documents to add to the index. Once you have finished adding the documents, you may want to merge the supplemental and main indexes.
To update your search index, do the following:
To update the search index using the CFGHTTPSCH *ADDDOC and CFGHTTPSCH *MGRIDX CL commands, do the following:
CFGHTTPSCH OPTION(*ADDDOC) IDX(myindex) IDXDIR('/mydir') + DOCLIST('/mydir/myindex.DOCUMENT_LIST') CFGHTTPSCH OPTION(*MRGIDX) IDX(myindex) IDXDIR('/mydir')
You can also update your index through scheduled batch jobs. For example, to update an index on Friday of every week at 11:30 p.m., do the following:
ADDJOBSCDE JOB(UPDATE) CMD( CFGHTTPSCH OPTION(*ADDDOC) IDX('myindex') DOCLIST('/QIBM/UserData/HTTPSVR/index/myindex.DOCUMENT.LIST')) JOB(UPDATE) FRQ(*WEEKLY) SCDDATE(*NONE) SCDDAY(*FRI) SCDTIME('23:30:00')
To update an index at 11:30 p.m. on the last day of every month, do the following:.
ADDJOBSCDE JOB(UPDATE) CMD(CFGHTTPSCH OPTION(*ADDDOC) IDX('myindex') DOCLIST('/QIBM/UserData/HTTPSVR/index/myindex.DOCUMENT.LIST') ) JOB(UPDATE) SCDDATE(*MONTHEND) SCDTIME('23:30:00') FRQ(*MONTHLY)
The supplemental index contains indexed documents that were added with the update search index form and are not yet merged into the main index. This merged index will include both the supplemental index and the main index.
To merge your search indexes, do the following:
You can delete both the main and supplemental indexes or just the supplemental index. The supplemental index contains indexed documents that were added with the update search index form and are not yet merged into the main index.
To delete your search indexes, do the following:
The Webserver search engine can show the status of a search index allowing you to keep track of its progress when updating or merging.
To view the status of a search index, do the following:
The status page displays all the current information available for the search index. Use this page to see any file errors that occurred during indexing.