Wiki source code of Search FAQs
Last modified by Ecaterina Moraru (Valica) on 2016/03/17 17:20
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{include reference="XWiki.SearchCode"/}} | ||
| 2 | |||
| 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 | |||
| 19 | {{velocity}} | ||
| 20 | {{include reference="$searchPage"/}} | ||
| 21 | {{/velocity}} |