let $keywords := ("keyworda", "keywordb", "keywordc")
for $keyword in $keywords,
$v in doc('test')//document/item
where $v/quote contains text {$keyword}
return (<re>
{$v/comment}
{$v/buyer}</re>)

There are three things I am trying to add to this query:

1) I'd like to get only two results per $keyword in $keywords, but I
am currently getting 20-30 results per keyword.

2) I'd like to search for case-insensitive keywords.

3) Because I am trying to receive only 2 results, I want to prioritize
results whose 'quote' element also contain round braces "(" and ")".


If anyone might be able to assist me in filling this query out, I
would really appreciate the help.  I've been looking through my book
for several days, and I've made no progress.  Thank you, in advance.
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to