Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SADE
SADE
Commits
88368848
Commit
88368848
authored
May 03, 2017
by
Ubbo Veentjer
Browse files
allow leading wildcards
parent
0913dedc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/faceted-search/faceted-search.xqm
View file @
88368848
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment