Wiki source code of Search FAQs
Last modified by Ecaterina Moraru (Valica) on 2016/03/17
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
3.1 | 1 | {{include reference="XWiki.SearchCode"/}} |
![]() |
1.1 | 2 | |
![]() |
3.1 | 3 | {{velocity output="false"}} |
4 | #if ($searchEngine == 'solr') | ||
5 | ## Customize the Solr Search UI for the FAQ application. | ||
6 | #set ($solrConfig = { | ||
7 | 'queryFields': 'title^3 property.FAQCode.FAQClass.answer', | ||
8 | 'facetFields': ['creator', 'creationdate', 'author', 'date', 'mimetype', 'attauthor', 'attdate', 'attsize'], | ||
9 | 'filterQuery': [ | ||
10 | 'type:DOCUMENT', | ||
11 | "wiki:$xcontext.database", | ||
12 | "space_exact:$doc.space", | ||
13 | 'class:FAQCode.FAQClass' | ||
14 | ] | ||
15 | }) | ||
16 | #end | ||
17 | {{/velocity}} | ||
18 | |||
![]() |
1.1 | 19 | {{velocity}} |
![]() |
3.1 | 20 | {{include reference="$searchPage"/}} |
![]() |
1.1 | 21 | {{/velocity}} |