Hello,
I've been trying to get the following search working:
cts:and-query(
(
cts:element-attribute-value-query(xs:QName("xm:field"),
xs:QName("type"), "number")
,
cts:element-value-query(xs:QName("xm:field"),('139*'),("wildcarded"))
)
Search for <xm:field type='number'> element containing something starting
with 139. However I don't seem to be able to get this to work. It doesn't
return all the values in my data.
It brings back: "1398" but I know there is also a value "139/2004/EC" which
I'd also like it to find.
If I change this to:
cts:and-query(
(
cts:element-attribute-value-query(xs:QName("xm:field"),
xs:QName("type"), "number")
,
cts:element-value-query(xs:QName("xm:field"),('139/2004/EC'),("wildcarded"))
)
It works but I need to be able to find both at once if possible.
I've set all the wildcard options to true on the database and added a
"element word lexicon" and reindexed. Will this not work? Do I need a
different type of lexicon, range?
Any help gratefully received
Cheers
Dom
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general