I shaked a little bit localization parameter, and now my search page working
better (found french pages) :-)
Query Parser
ExtendedDismaxQParser
Parsed Query
+((title_fr:genial | title__:genial)^3.0 |
(property.FormSMQ.EAClass.A_ExpertsAutre_string:genial |
property.FormSMQ.EAClass.A_ExpertsAutre__:genial |
property.FormSMQ.EAClass.A_ExpertsAutre_fr:genial |
property.FormSMQ.EAClass.A_ExpertsAutre_boolean:F))
Filter Queries
* type:DOCUMENT
* wiki:xwiki
* space_exact:FormSMQ
* class:FormSMQ.EAClass
Pascal the chatty box:-/
________________________________
De : Pascal BASTIEN <[email protected]>
À : XWiki Users <[email protected]>
Envoyé le : Mercredi 10 septembre 2014 10h52
Objet : Re: Solr and blank characters
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 <[email protected]>
À : XWiki Users <[email protected]>
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
[email protected]
http://lists.xwiki.org/mailman/listinfo/users