Re: [bdbxml] disappearing default index
John Snelson <[email protected]> Mon, 26 Sep 2005 11:12:39 +0100
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Vries, Willem de (ELS) wrote:
> my $ix = $container->getIndexSpecification($containerTxn);
> $ix->addDefaultIndex("edge-element-substring-string");
> my $uc = $mgr->createUpdateContext();
> $container->addDefaultIndex($containerTxn, $ix,$uc);
This is your problem. You either need to use
XmlContainer::setIndexSpecification() or XmlContainer::addDefaultIndex()
- not both! Try this:
my $ix = $container->getIndexSpecification($containerTxn);
$ix->addDefaultIndex("edge-element-substring-string");
my $uc = $mgr->createUpdateContext();
$container->setIndexSpecification($containerTxn, $ix,$uc);
or this:
my $uc = $mgr->createUpdateContext();
$container->addDefaultIndex($containerTxn,
"edge-element-substring-string", $uc);
John
--
John Snelson, Berkeley DB XML Engineer
Sleepycat Software, Inc
http://www.sleepycat.com
Contracted to Sleepycat through Parthenon Computing Ltd
http://blog.parthcomp.com/dbxml
------------------------------------------
To remove yourself from this list, send an
email to [email protected]