Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
that surfaced only with eXist v5.3.1
  • Loading branch information
peterstadler committed Jan 4, 2022
1 parent 63b8ac7 commit 57ced54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/search.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ declare %private function search:merge-hits($hits as item()*) as map(*)* {
~:)
declare %private function search:fulltext($items as item()*, $searchString as xs:string, $filters as map(*), $docType as xs:string) as item()* {
let $query := search:create-lucene-query-element($searchString)
let $search-func := wdt:lookup(., $items)?search
let $search-func := wdt:lookup($docType, $items)?search
return
try { $search-func($query) }
catch * { error($search:ERROR, 'failed to search collection with docType "' || $docType || '"') }
Expand Down

0 comments on commit 57ced54

Please sign in to comment.