forked from abaevdict/abaev-basex
search optimizations
This commit is contained in:
parent
10b0f39199
commit
75564a010d
4 changed files with 73 additions and 35 deletions
|
@ -3,8 +3,10 @@ declare namespace abv = "http://ossetic-studies.org/ns/abaevdict";
|
|||
|
||||
import module namespace abv-m = 'http://ossetic-studies.org/ns/abaevdict-mod' at './abv-mod.xqm';
|
||||
|
||||
for $a in [1,2,3]?*
|
||||
return $a
|
||||
let $search := abv-m:search('en','full','friend')
|
||||
let $frag := $search(1)('fragment')
|
||||
return $frag
|
||||
(: return abv-m:mark-element(db:get('abaevdict_en',`xml/{$search(1)('entry')}.xml`), $search(1)('nodes')(1), 'friend') => abv-m:make-html('en') :)
|
||||
|
||||
(: let $doc-tr := $doc transform with {
|
||||
replace node xquery:eval("/Q{http://www.tei-c.org/ns/1.0}entry[1]/Q{http://www.tei-c.org/ns/1.0}etym[1]/Q{http://www.tei-c.org/ns/1.0}mentioned[2]/Q{http://www.tei-c.org/ns/1.0}mentioned[18]", {'': .})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue