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 indices 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 indices and node-level indices. 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 to change the container's index type to node indexes, and use DBXML_NO_INDEX_NODES to change the index type to document indexes. Use DBXML_STATISTICS to add a structural statistics database to the container during reindexing, and DBXML_NO_STATISTICS to remove an existing structural statistics database.

APIRef

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