From:
<jmf...@cn...> - 2006-11-30 21:30:57
|
Hi everybody, one of the XML databases we have at CNIO is a disease info database, whi= ch=20 contains the textual description of some thousands of human diseases (its= =20 content comes from OMIM). I'm now creating a content search facility whic= h=20 recovers the diseases which contain the keywords used in the query, so th= ey=20 can be further linked to other databases entries. I have driven the eXist engine to FT index the whole content of the dise= ase=20 database. It works very well (a few seconds) when the search is made over= =20 concrete elements (for instance, all the paragraph elements), but it take= s=20 ages when I'm querying the whole collection: for $entry in collection('OMIM')//mim:record[.//node() &=3D $term] return= =20 ens:fetchbymimrefs($entry/@mimNumber) As I have declared a default FT index policy for the collection, is ther= e a=20 more efficient way to do this one, like the qname-index-lookup function f= or=20 QName indexes? Thanks in advance, Jos=E9 Mar=EDa --=20 Jos=E9 Mar=EDa Fern=E1ndez Gonz=E1lez Tlfn: (+34) 91 732 80 00 / 91 224 69 00 (ext 2256) e-mail: jmf...@cn... Fax: (+34) 91 224 69 76 Biolog=EDa Estructural y Bioinform=E1tica Structural Biology and Bioinfor= matics Centro Nacional de Investigaciones Oncol=F3gicas C.P.: 28029 Zip Code: 28029 C/. Melchor Fern=E1ndez Almagro, 3 Madrid (Spain) **NOTA DE CONFIDENCIALIDAD** Este correo electr=F3nico, y en su caso los = ficheros adjuntos, pueden contener informaci=F3n protegida para el uso ex= clusivo de su destinatario. Se proh=EDbe la distribuci=F3n, reproducci=F3= n o cualquier otro tipo de transmisi=F3n por parte de otra persona que no= sea el destinatario. Si usted recibe por error este correo, se ruega com= unicarlo al remitente y borrar el mensaje recibido. **CONFIDENTIALITY NOTICE** This email communication and any attachments m= ay contain confidential and privileged information for the sole use of th= e designated recipient named above. Distribution, reproduction or any oth= er use of this transmission by any party other than the intended recipien= t is prohibited. If you are not the intended recipient please contact the= sender and delete all copies. |