-
-
Save AdamSteffanick/600cbc75bb0f8692133252f2f0ef0803 to your computer and use it in GitHub Desktop.
XQuery Full Text
This file contains 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 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 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 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 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 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