I've been trying to figure out how to create new collections with the
embedded implementation of Xindice. What I want is to be able to open a
collection with something like
col= (CollectionImpl)
DatabaseManager.getCollection("xmldb:xindice-embed:///" + databaseName +
"/" + collectionName);
As I was using 1.0 previously I would create all of the collections from
the command line. Obviously I now want to do that from inside my code
(much cleaner). Have a look see if the collection is there if not go
create one.
I've kind of been assuming that I'll need to use the two Impl classes in
the org.apache.xindice.client.xmldb.embed package. I just can't see how
to get it done.
Any help would be appreciated.
Simon.