Wiki-Quellcode von Suche in diesem Handbuch
Zuletzt geändert von Jannis Klein am 2024/03/19 18:00
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | {{aagon.priorisierung}} | ||
2 | 0 | ||
3 | {{/aagon.priorisierung}} | ||
4 | |||
5 | {{include reference="XWiki.SearchCode"/}} | ||
6 | {{velocity}} | ||
7 | ##Einfügen der Suchleiste in die Navigation | ||
8 | #if($searchEngine == 'solr') | ||
9 | #set ($solrConfig = { | ||
10 | 'queryFields': { | ||
11 | 'DOCUMENT': 'spaces^15.0 | ||
12 | title^10.0 name^10.0 | ||
13 | doccontent^2.0 | ||
14 | objcontent^0.4 filename^0.4 attcontent^0.4 doccontentraw^0.4 | ||
15 | author_display^0.08 creator_display^0.08 | ||
16 | comment^0.016 attauthor_display^0.016', | ||
17 | 'ATTACHMENT': 'filename^5.0 attcontent attauthor_display^0.2' | ||
18 | }, | ||
19 | 'filterQuery': [ | ||
20 | 'space_prefix: "63"', | ||
21 | "wiki:$doc.wiki" | ||
22 | ] | ||
23 | }) | ||
24 | #end | ||
25 | |||
26 | #if ("$searchPage" != '') | ||
27 | {{include reference="$searchPage"/}} | ||
28 | #end | ||
29 | {{/velocity}} |