Commit 88368848 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

allow leading wildcards

parent 0913dedc
......@@ -288,11 +288,15 @@ declare function local:get-hits($model as map(*), $target as xs:string) as node(
let $query := request:get-parameter("q", ())
let $index := request:get-parameter("index", "default")
let $fxquery := local:construct-facet-query($model)
let $options :=
<options>
<leading-wildcard>yes</leading-wildcard>
</options>
let $xqueries := for $query-root in $model("config")//module[@key="faceted-search"]/param[@key="query-root"]//xpath
return
if($query) then
"collection($target)" || $query-root || $fxquery || "[ft:query(., $query)]"
"collection($target)" || $query-root || $fxquery || "[ft:query(., $query, $options)]"
else
"collection($target)" || $query-root || $fxquery
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment