next up previous contents index
Next: Command-line Administration Up: 5.6 Administrating a Broker Previous: 5.6 Administrating a Broker

Deleting unwanted Broker objects

If you build a Broker and then decide not to index some of that data (e.g., you decide it would make sense to split it into two different Brokers, each targetted to a different community), you need to change the Gatherer's configuration file, rerun the Gatherer, and then let the old objects time out in the Broker (since the Broker and Gatherer maintain separate databases). If you want to clean out the Broker's data sooner than that you can use the Broker's administrative interface in one of three ways:

  1. Use the 'Remove object by name' command. This is only reasonable if you have a small number of objects to remove in the Broker.

  2. Use the 'Remove object by query'. This might be the best option if, for example, you can construct a regular expression based on the URLs you want to remove.

  3. Shutdown the server, manually remove the Broker's objects/* files, and then restart the Broker. This is easiest, although if you have a large number of objects it will take longer to rebuild the index. A simple way to accomplish this is by ``rebooting'' the Broker by deleting all the current objects, and doing a full collection, as follows:

            % mv objects objects.old
            % rm -rf objects.old &
            % broker ./admin/broker.conf -new
    

After removing objects, you should use the Index corpus command.





Duane Wessels
Wed Jan 31 23:46:21 PST 1996