Hi Pascal. I've got the same problem with FAQ application. The search returns inexplicably only some results(or nothing at all). E.g. If I try to search for "test", it finds the following articles: Test 1 Test 7 Test 8 ... Some pages simply don't appear(test 2,3,4,5,...). I cant figure out why.
Workarround(maybe it can be usefull to you): - Edit the page where is the html form and set to: <form method="GET" action="$xwiki.getURL('Main.Search')?r=1"> - Insert a hidden field with the value as your FAQ Space name(in my case its the default ["FAQ"]): <input type="hidden" name="f_space_exact" value="FAQ" /> - Done. It will use the default search from XWiki, but will return only itens from FAQ Space. Another interesting I've added is the Auto suggest feature, which is something great for FAQ applications. http://platform.xwiki.org/xwiki/bin/view/DevGuide/AutoSuggestWidget See if it helps you. Regards. http://xwiki.475771.n2.nabble.com/Search-not-working-in-FAQ-Extension-td7591775.html 2014-09-10 5:52 GMT-03:00 Pascal BASTIEN <pbasnews-xw...@yahoo.fr>: > 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 > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users