reworked file structure; changed search results to be faster
This commit is contained in:
parent
a0fa864475
commit
a65037f8ea
15 changed files with 880 additions and 853 deletions
|
@ -324,11 +324,12 @@ declare function abv-m:search($db-lang as xs:string,
|
|||
}
|
||||
let $hits := $docs//tei:entry[1][$test(.)]
|
||||
return array:build(for $hit in $hits
|
||||
let $entry-id := $hit/@xml:id
|
||||
let $entry-id as xs:string := $hit/@xml:id
|
||||
(: group by $entry-id :)
|
||||
let $mark := ft:mark($hit[$test(.)])
|
||||
order by abv-m:sortKey($hit/@xml:id)
|
||||
return {'entry': $entry-id,
|
||||
'entryForm': abv-m:entry-form-by-id($entry-id),
|
||||
(: 'nodes': array:build(for $node in $hit return path($node)), :)
|
||||
'tei': ft:mark($hit[$test(.)]),
|
||||
'fragment': <span>{util:strip-namespaces(($mark//*[tei:mark])[1])/child::node()}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue