XmlContainer::setIndexSpecification |
#include <DbXml.hpp>void XmlContainer::setIndexSpecification(DbTxn *txn, const XmlIndexSpecification &index);
The XmlContainer::setIndexSpecification method defines the type of indexing to be maintained for a container of documents. The currently defined indexing specification can be retrieved with the XmlContainer::getIndexSpecification method.
If the container is not empty then the contained documents are incrementally indexed. Index keys for disabled index strategies are removed and index keys for enabled index strategies are added. Note that the length of time taken to perform this re-indexing operation is proportional to the size of the container.
The application must open the container before attempting to modify its indexing specification.
The XmlContainer::setIndexSpecification method may fail and throw XmlException, encapsulating one of the following non-zero errors:
Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.