Dear Henning,
If you want to perform full-text queries, you would first have to create a full-text index. Unfortunately, with the release version you are using, this can only be done on MIL level, not within XQuery. (I will attach a mil script for creating an index as an example)
Thank you for your reply. Unfortunately, I still do not know how to create an index. I do not know how to run the script for instance. I have tried it in the way as shown below (resulting in a number of errors). Is this the right way of invoking a MIL-script? === [sander@localhost ~]$ Mserver --dbinit="module(pathfinder);" < index_coll.mil # Monet Database Server V4.16.0 # Copyright (c) 1993-2007, CWI. All rights reserved. # Compiled for i686-redhat-linux-gnu/32bit with 32bit OIDs; dynamically linked. # Visit http://monetdb.cwi.nl/ for further information. MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>!ERROR: # tj_init_global() unkonwn parameter [pf_collection]. MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>MonetDB>[ "/local/rodeh/aquaint/xml_aggr/corpus.lst" ] MonetDB>!ERROR: could not open file /local/rodeh/aquaint/xml_aggr/corpus.lst !ERROR: ascii_io_load: operation failed. MonetDB>!ERROR: interpret: no matching MIL operator to 'find(void, str)'. !MAYBE YOU MEAN: ! find(BAT[any::1,any::2], any::1) : any::2 ! find(any::1, oid) : any::1 !ERROR: interpret_params: seqbase(param 1): evaluation error. MonetDB>MonetDB>!ERROR: interpret: no matching MIL operator to 'reverse(str)'. !MAYBE YOU MEAN: ! reverse(BAT[any::1,any::2]) : BAT[any::2,any::1] !ERROR: interpret_params: join(param 1): evaluation error. MonetDB>!ERROR: interpret: no matching MIL operator to 'tj_add2collection(str, void, bit)'. !MAYBE YOU MEAN: ! tj_add2collection(str, BAT[str,str], bit) : void ! tj_add2collection(str, str, str, bit) : void === As you can see, this results in a number of errors. I have not altered your script, as I do not know what all parameters and variables are and I do not know a location where I can find the meaning of them. Obviously, some things need to be changed for us to be able to use the script, but I do not know what. What is a .lst file and what does it look like? And could it be expected that the first error occurs (tj_init_global() unkonwn parameter [pf_collection].)? Can you, or someone else of course, provide us with a script that has some more comments about what everything means, how things should be changed and what the external files should look like? Or point us to a location where we can find information about that? Or is it more advisable to use the latest branch of MonetDB as these kind of problems simply do not occur there? Kind regards, Sander Bockting