XmlManager::reindexContainer

API Ref

#include <DbXml.hpp>

void XmlManager::reindexContainer( const std::string &name, XmlUpdateContext &context, u_int32_t flags = 0)

void XmlManager::reindexContainer( XmlTransaction &txn, const std::string &name, XmlUpdateContext &context, u_int32_t flags = 0)


Description: XmlManager::reindexContainer

Reindex an entire container. The container should be backed up prior to using this method, as it destroys existing indexes before reindexing. If the operation fails, and your container is not backed up, you may lose information.

Use this call to change the type of indexing used for a container between document-level indexes and node-level indexes. This method can take a very long time to execute, depending on the size of the container, and should not be used casually.

Parameters

txn
If the operation is to be transaction-protected, the txn parameter is an XmlTransaction handle returned from XmlManager::createTransaction.
name
The path to the container to be reindexed.
context
The update context to use for the reindex operation.
flags
Use DBXML_INDEX_NODES in order to index the container at the node level; otherwise, it will be indexed at the document level.

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.