[bdbxml] Query problem
Adam Rambousek <[email protected]> Tue, 16 Aug 2005 20:09:23 +0200
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to search for substring in BDBXML, but I have no luck. Basic XML structure is like this: <SYNSET> <ID>ENG20-00001740-a</ID> <SYNONYM> <LITERAL>breathe</LITERAL> <LITERAL>take a breath</LITERAL> </SYNONYM> </SYNSET> I have index node-element-equality-string and node-element-substring-string on LITERAL. If I use a query /SYNSET[SYNONYM/LITERAL="something"], I get correct results. But if I try /SYNSET[contains(SYNONYM/LITERAL, "something")], I get error saying: Error: SequenceType matching failed: the sequence contains more than one item [err:XP0006] Please, how can I search using contains() or starts-with()? Thanks for any help. -- Adam Rambousek email: [email protected] www: http://www.pohadkovychlum.cz ------------------------------------------ To remove yourself from this list, send an email to [email protected]