Hello,
I try to writing a search page in my application, but unfortunaly I used bank characters
in my spave name :-(
I try to applie this method:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Applicatio…
without succes.
I tried to replace blank with + character and/or add " character or '
The result is an error or no search result...
Have you got a tip to escape blank character in my code?
{{include reference="XWiki.SearchCode"/}}
{{velocity output="false"}}
#if ($searchEngine == 'solr')
## Customize the Solr Search UI for the application.
#set ($solrConfig = {
'queryFields': 'title^3
property.Formulaires+SMQ.EAClass.A_ExpertsAutre',
'facetFields': ['creator', 'creationdate', 'author',
'date', 'mimetype', 'attauthor', 'attdate',
'attsize'],
'filterQuery': [
'type:DOCUMENT',
"wiki:$xcontext.database",
"space_exact:Formulaires+SMQ",
'class:Formulaires+SMQ.EAClass'
]
})
#end
{{/velocity}}
{{velocity}}
{{include reference="$searchPage"/}}
{{/velocity}}
Thxs
Pascal B