[Bug 5829] [FTUC] xquery full text use case document has WRONG xpath solutions

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5829





--- Comment #4 from zhen hua liu <zhen.liu@oracle.com>  2008-08-06 23:09:09 ---
here is xpath solutions which removes unnecessary count() and fixes numerous
issues:
(:: 2.2.4  ::)
doc('http://bstore1.example.com/full-text.html')
/books/book[./metadata/title[. ftcontains "usability tests"]
or ./content/part/chapter/title[. ftcontains "usability tests"]]


(:: 2.2.5 ::)
doc('http://bstore1.example.com/full-text.html')
/books/book[metadata/subjects/subject
ftcontains "usability testing"]/metadata/(title|author)



(:: 2.2.6 ::)
doc('http://bstore1.example.com/full-text.html')/books/book/metadata/title[.
ftcontains
"improving" ftand "usability" ordered distance at most 2 words  at start]


(:: 2.2.7 ::)
doc('http://bstore1.example.com/full-text.html')/books/book/metadata/title[.
ftcontains
"improv.* the usability of a web site through expert
reviews and usability testing" entire content]




(:: 3.2.1 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[.//chapter
ftcontains "one of
the best known lists of heuristics is Ten Usability Heuristics"]


(:: 3.2.2 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[content/part/introduction
ftcontains "prototypes"]


(:: 3.2.3 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[content ftcontains
"tests"]



(:: 3.2.4 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[.//content
ftcontains "usability testing once the problems"]

(:: 3.2.5 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[
content/introduction ftcontains "identif.*" with wildcards and
content/part/introduction ftcontains "identif.*" with wildcards]




(:: 3.2.6 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[. ftcontains
"mouse"]




(:: 4.2.1 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[
metadata/title/@shortTitle
 ftcontains "improve" ftand "web" ftand "usability" with stemming
distance at most 2 words  ]/metadata/title



(:: 4.2.2 ::)
(:: no xpaths solution ::)
(:: 5.2.1 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[content ftcontains
"test." with wildcards]


(:: 5.2.2 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[ .//content
ftcontains ".?way" with wildcards]


(:: 5.2.3 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[.//content
 ftcontains "serv.*e" with wildcards]/fn:concat(@number, ", " , metadata/title)


(:: 5.2.4 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[.//content
ftcontains "us.+ testing"
   with wildcards]/fn:concat(@number, ", ", metadata/title)




(:: 5.2.5 ::)
doc('http://bstore1.example.com/full-text.html')/books/book[content ftcontains
"test.{3,4}"
   with wildcards]


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 6 August 2008 23:09:49 UTC