Hi , Am 14.03.2013 um 19:11 schrieb Cerstin Elisabeth Mahlow <cerstin.mahlow@unibas.ch>:
How would I add a root element to the new DB, as I don't wan't to link it to an existing document? All nodes added to the DB are only results from queries over an existing DB. All I can see from the Wiki is using a document as initial data for the DB.
I now use a rather odd workaround: db:create('annotate', <root/>, '/dev/null/') I think it should be possible to create a DB with a root element only, not requiring a document. As I want to use fulltext queries for this DB later, I created the fulltext index after inserting all nodes. It seems that one has to run OPTIMIZE first and only afterwards can create the fulltext index with CREATE INDEX. Is this correct? Or is it possible to create all indexes with one command? When I update this DB later by letting users interact, do I have to run OPTIMIZE after every update to be able to use ft:mark for the following user interactions? Thanks in advance Cerstin -- Dr. phil. Cerstin Mahlow Universität Basel Departement Sprach- und Literaturwissenschaften Fachbereich Deutsche Sprach- und Literaturwissenschaft Nadelberg 4 4051 Basel Schweiz Tel: +41 61 267 07 65 Fax: +41 61 267 34 40 Mail: cerstin.mahlow@unibas.ch Web: http://www.oldphras.net