Created
November 11, 2016 20:05
-
-
Save CliffordAnderson/2aad2416c917181780930625d212707d to your computer and use it in GitHub Desktop.
XQuery Full Text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
for $p in fn:collection("vwwp_tei")//tei:p | |
where fn:contains($p, "church") | |
return $p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
for $p in fn:collection("vwwp_tei")//tei:p | |
where fn:matches($p, "church") | |
return $p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
for $p in fn:collection("vwwp_tei")//tei:p | |
where $p contains text "church" | |
return $p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
for $p in fn:collection("vwwp_tei")//tei:p | |
where $p contains text "church" using stemming | |
return $p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
ft:mark(//tei:p[.//text() contains text "church"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
for $text score $score in (fn:collection("vwwp_tei")//tei:p)[. contains text "church"] | |
order by $score descending | |
return <hit score='{ format-number($score, "0.00") }'>{ $text }</hit> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment