[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
General Programming Concepts: Writing and Debugging Programs

Removing Indexes of your Documentation

You cannot just delete files to remove an index from a server. This will leave the search service corrupted. Use the following steps to remove an index:

  1. Delete the index.

    1. Single-Byte Languages:

      /usr/IMNSearch/cli/imnixdel index_name

    2. Double-Byte Languages:

      /usr/IMNSearch/cli/imqixdel index_name

  2. Remove the index entry in the registration table.

    1. Single-Byte Languages:

      /usr/IMNSearch/cli/imndomap /var/docsearch/indexes -d index_name

    2. Double-Byte Languages:

      /usr/IMNSearch/cli/imqdomap /var/docsearch/indexes -d index_name

  3. Copy the changed index registration table over the backup copy of the index registration table so that the backup copy is updated. Type:
    cp  /var/docsearch/indexes/imnmap.dat  /usr/docsearch/indexes
  4. Then delete the empty index directories that held the index files:

    rm -r /usr/docsearch/indexes/index_name


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]