I'm unclear about the effect of the first parameter expression in cts:search.

I think I understand that if I do something like

        cts:search(doc(),"water")

I'm doing a cts:word-query search for water and the search is run against the whole document.

If I do something like

        cts:search(doc()/title,"water")

I've limited the word search to just the title element (I think). At least only documents with the word in the title seem to come back.

But what is going on if I do something like

cts:search(doc()/title, cts:element-word- query(xs:QName("abstract"),"water"))

I think I'm only searching the abstract element and I think the first parameter to cts:search is limiting only the element that gets returned, but is that correct? Does the first parameter to cts:search effect what part of the document is being searched?

Alan

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to