Hello,

For information, I removed blank character in my space name but my search page 
doesn't working either.

Fortunely I managed to identify the problem: solr search only in english pages 
of my space...

If my wiki is in french, debug of my search page return no results (my pages 
are in french version):
Query Parser
ExtendedDismaxQParser
Parsed Query
+((title_en:super | title__:super)^3.0 | 
(property.FormSMQ.EAClass.A_ExpertsAutre_string:super | 
property.FormSMQ.EAClass.A_ExpertsAutre_en:super | 
property.FormSMQ.EAClass.A_ExpertsAutre__:super | 
property.FormSMQ.EAClass.A_ExpertsAutre_boolean:F))
Filter Queries
        * type:DOCUMENT
        * wiki:xwiki
        * space_exact:FormSMQ
        * class:FormSMQ.EAClass
If my wiki is in english and if I create some english pages, my search page 
return correctly results (pages in english version).
(FAQ application working well because pages are in english version)

Do you think it is a bug?


ThxS

Pascal BASTIEN



________________________________
 De : Pascal BASTIEN <pbasnews-xw...@yahoo.fr>
À : XWiki Users <users@xwiki.org> 
Envoyé le : Vendredi 5 septembre 2014 17h18
Objet : Solr and blank characters
 


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+Application#HSearchUIConfiguration
 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
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to