Re: [xwiki-users] Xwiki 5.3 upgrade and Solr
On Thu, Dec 26, 2013 at 7:14 PM, Stéphane LASSIRE slass...@cesap.asso.fr wrote: Hello Dumitru, Thanks for your help. To answer to tour questions : Were you using Solr before? I mean, was Solr the configured search engine before the upgrade? Did you had any modifications to the search pages (i.e. custom search) before the upgrade? Yes Solr was the engine before migrating. I do no make any modifications Check the history of XWiki.SolrSearchAdmin, XWiki.SearchCode and XWiki.SearchAdmin. Maybe there was a bad merge, but I don't see why. I will see, the history page permitts to solve some marge conflicts ? No, but you can spot a bad merge. I doubt this is the problem though because you said you didn't made any modifications to the search application so there wasn't any merge conflict most probably. You need to wait for the wiki to be indexed. The indexing is done in a background thread. You just trigger the indexing from the search administration. It's not done after the page reloads. But you should see a counter decreasing (the number of documents in the index queue, check the Solr search documentation page on extensions.xwiki.org). Only when that counter is 0 you know that entire wiki has been indexed and the results should be complete. I do not see any counter on lauching, I will look at the documentation of solr. where does this counter should be ? You should have a Status section. Checkout the 3rd image on http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HSearchAdministration Sorry for the late reply. Hope this helps, Marius Have a nice day Stéphane Marius Dumitru Florea mariusdumitru.flo...@xwiki.com Envoyé par : users users-boun...@xwiki.org 26/12/2013 13:24 Veuillez répondre à XWiki Users users@xwiki.org A XWiki Users users@xwiki.org cc Objet Re: [xwiki-users] Xwiki 5.3 upgrade and Solr Hi Stéphane, On Dec 26, 2013 11:52 AM, Stéphane LASSIRE slass...@cesap.asso.fr wrote: Hello, On monday I make the upgrade on our linux server from Xwiki 5.1 to Xwiki 5.3. We are using Debian + POstgresql + Tomcat 7. The migration was OK, after the debian step I went to the admin migration tool inside Xwiki. I think I answer to all the conflict questions. And finally like said in the documentation I delete on the server the /var/lib/xwiki/data/solr directory. But something is not ok with solr. Were you using Solr before? I mean, was Solr the configured search engine before the upgrade? Did you had any modifications to the search pages (i.e. custom search) before the upgrade? On the Admin page of Recherche, on the SOlr research result page , on the top of the page I got this message : #if ($searchEngine != $searchExtension.id) At the bottom : label for=solrAdminAction$services.localization.render('solr.admin.indexing.action.label')/label span class=xHint$services.localization.render('solr.admin.indexing.action.hint')/span Check the history of XWiki.SolrSearchAdmin, XWiki.SearchCode and XWiki.SearchAdmin. Maybe there was a bad merge, but I don't see why. It sounds like some translations are not there. But the real problem is there the research is very limited. I ask Solr to recreate all indexes, reboot the server after a will, but nothing change. I know some very used words in our organisation, in pages or inside attached documents, but Solr show a few of them. You need to wait for the wiki to be indexed. The indexing is done in a background thread. You just trigger the indexing from the search administration. It's not done after the page reloads. But you should see a counter decreasing (the number of documents in the index queue, check the Solr search documentation page on extensions.xwiki.org). Only when that counter is 0 you know that entire wiki has been indexed and the results should be complete. Hope this helps, Marius Any idea ? Thanks Cordialement Stéphane Lassire ___ 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 ___ 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
Re: [xwiki-users] Xwiki 5.3 upgrade and Solr
Hello, I looked at the bottom of the search page on the admin side. Only a message not translated, and may be something is missing : label for=solrAdminAction$services.localization.render('solr.admin.indexing.action.label')/label span class=xHint$services.localization.render('solr.admin.indexing.action.hint')/span And dont worry, you are not late, I was off office last days . Happy new year Stéphane Marius Dumitru Florea mariusdumitru.flo...@xwiki.com Envoyé par : users users-boun...@xwiki.org 26/12/2013 13:24 Veuillez répondre à XWiki Users users@xwiki.org You need to wait for the wiki to be indexed. The indexing is done in a background thread. You just trigger the indexing from the search administration. It's not done after the page reloads. But you should see a counter decreasing (the number of documents in the index queue, check the Solr search documentation page on extensions.xwiki.org). Only when that counter is 0 you know that entire wiki has been indexed and the results should be complete. I do not see any counter on lauching, I will look at the documentation of solr. where does this counter should be ? You should have a Status section. Checkout the 3rd image on http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HSearchAdministration Sorry for the late reply. Hope this helps, Marius ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] getMonth() and January ?
Hello, I put a new field in the user page to see the last login of each for statistics purposes. On november and december last year it rans perfectly. But on january, the month is only on 1 letter ! The macro : {{velocity}} #set($date_ll = $datetool.getYear()+ '/' + $datetool.getMonth() + '/' + $datetool.getDay()) #set($name = $xcontext.getLocalUser()) #set($myDoc = $xwiki.getDocument($name)) #set($obj = $myDoc.getObject('XWiki.XWikiUsers')) #set($discard = $obj.set(last_login, $date_ll)) #set($discard = $myDoc.save()) {{/velocity}} Result for today : 2014/0/6 Last month I got 2014/12/06 for example. is there some strange behaviour withe the getMonth() function ? thanks Cordialement Stéphane Lassire Chargé de l'informatique et de la communication Tél direct : 01 42 85 81 87 Courriel : slass...@cesap.asso.fr ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] help how to inherit a class from another
hi, Thanks for your answer. Currently I am using a set of classes to represent my data, for display part they just need to directly show the properties. If I use composit, for the common part I need to identify if it's common, and there will be some if-else in each of the subclasses. I just wandering if we can have some auto-load, so that I don't need to use if-else everywhere, and it will be easy to maintain, just like the inherited class. 2014/1/5 Valdis Vītoliņš valdis.vitol...@odo.lv If you mean these classes defined in class editor defined in .../xwiki/bin/view/XWiki/XWikiClasses AFAIK these doesn't support extension. So, you need to use composition instead. Add object with type of the common class, and for few other documents add another object with type of extended class. You will need to adjust class sheet object to display fields of other tyepe of objects also (look at http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module ) Valdis hi, the Class I mean is XClass, which is used in Wiki pages. thanks, B.R./ZZH 2014/1/5 Zhihua Zheng zhihu...@gmail.com hi all, I have couple of classes they are similar, most of them are the same, but some small parts are different. So that I want to use a arch that there is a common class holds all the common properties, and the real classes are inherited from the common. But how to achieve that? thanks! ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Xwiki 5.3 upgrade and Solr
On Mon, Jan 6, 2014 at 1:56 PM, Stéphane LASSIRE slass...@cesap.asso.fr wrote: Hello, I looked at the bottom of the search page on the admin side. Only a message not translated, and may be something is missing : label for=solrAdminAction$services.localization.render('solr.admin.indexing.action.label')/label span class=xHint$services.localization.render('solr.admin.indexing.action.hint')/span Is this HTML visible on the administration section or are you pasting from the HTML source of the page (Right Click + View Source, in most browsers)? If you see this HTML directly on the search administration page then something is clearly wrong. A quick fix is to import the XAR of the Search Application corresponding to the XWiki version you have. Actually there are 2 XARs: http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-search-ui/ http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-search-solr-ui/ but we won't know what caused the upgrade problem. Hope this helps, Marius And dont worry, you are not late, I was off office last days . Happy new year Stéphane Marius Dumitru Florea mariusdumitru.flo...@xwiki.com Envoyé par : users users-boun...@xwiki.org 26/12/2013 13:24 Veuillez répondre à XWiki Users users@xwiki.org You need to wait for the wiki to be indexed. The indexing is done in a background thread. You just trigger the indexing from the search administration. It's not done after the page reloads. But you should see a counter decreasing (the number of documents in the index queue, check the Solr search documentation page on extensions.xwiki.org). Only when that counter is 0 you know that entire wiki has been indexed and the results should be complete. I do not see any counter on lauching, I will look at the documentation of solr. where does this counter should be ? You should have a Status section. Checkout the 3rd image on http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HSearchAdministration Sorry for the late reply. Hope this helps, Marius ___ 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
Re: [xwiki-users] getMonth() and January ?
On Mon, Jan 6, 2014 at 2:16 PM, Stéphane LASSIRE slass...@cesap.asso.fr wrote: Hello, I put a new field in the user page to see the last login of each for statistics purposes. On november and december last year it rans perfectly. But on january, the month is only on 1 letter ! The macro : {{velocity}} #set($date_ll = $datetool.getYear()+ '/' + $datetool.getMonth() + '/' + $datetool.getDay()) This is better and safer: #set($date_ll = $datetool.get('/MM/dd')) Hope this helps, Marius #set($name = $xcontext.getLocalUser()) #set($myDoc = $xwiki.getDocument($name)) #set($obj = $myDoc.getObject('XWiki.XWikiUsers')) #set($discard = $obj.set(last_login, $date_ll)) #set($discard = $myDoc.save()) {{/velocity}} Result for today : 2014/0/6 Last month I got 2014/12/06 for example. is there some strange behaviour withe the getMonth() function ? thanks Cordialement Stéphane Lassire Chargé de l'informatique et de la communication Tél direct : 01 42 85 81 87 Courriel : slass...@cesap.asso.fr ___ 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
Re: [xwiki-users] getMonth() and January ?
Hello Dumitru Nice idea, now it works perfectly. THanks a lot Cordialement Stéphane Lassire Chargé de l'informatique et de la communication Tél direct : 01 42 85 81 87 Courriel : slass...@cesap.asso.fr Marius Dumitru Florea mariusdumitru.flo...@xwiki.com Envoyé par : users users-boun...@xwiki.org 06/01/2014 14:10 Veuillez répondre à XWiki Users users@xwiki.org A XWiki Users users@xwiki.org cc Objet Re: [xwiki-users] getMonth() and January ? On Mon, Jan 6, 2014 at 2:16 PM, Stéphane LASSIRE slass...@cesap.asso.fr wrote: Hello, I put a new field in the user page to see the last login of each for statistics purposes. On november and december last year it rans perfectly. But on january, the month is only on 1 letter ! The macro : {{velocity}} #set($date_ll = $datetool.getYear()+ '/' + $datetool.getMonth() + '/' + $datetool.getDay()) This is better and safer: #set($date_ll = $datetool.get('/MM/dd')) Hope this helps, Marius 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
[xwiki-users] [ANN] Welcome our new committer Clemens Robbenhaar
Hi xwikiers, The committers discussed and voted to include Clemens Robbenhaar in the team which he agreed so a warm welcome to him ! He has been very active since he started working on XWiki, he already spend a lot of time answering questions on the mailing list and on IRC (more than me I think). On the technical aspect everything I saw from him was good and very clean and he is clearly no afraid to look at advanced stuff (he spent a long time last month trying to help Kaisen and Denis on migration stuff which I'm sure was not that critically related to his own work). Note that he is working on XWiki for EsPresto AG (don't forget to add it to http://main.xwiki.org/xwiki/bin/view/Main/Support). I'm sure he will be great addition to the team and it's always a nice bonus to see non XWiki SAS members so active ;) Welcome ! -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Xwiki 5.3 upgrade and Solr
Hello, Is this HTML visible on the administration section or are you pasting from the HTML source of the page (Right Click + View Source, in most browsers)? If you see this HTML directly on the search administration page then something is clearly wrong. A quick fix is to import the XAR of the Search Application corresponding to the XWiki version you have. Actually there are 2 XARs: http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-search-ui/ http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-search-solr-ui/ but we won't know what caused the upgrade problem. Hope this helps, Marius This is a good idea, after deleting old modules and importing the new ones it is ok, no more non translated messages et the statut line is there. Thank you very much Cordialement Stéphane ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [ANN] Welcome our new committer Clemens Robbenhaar
Great to see XWiki continuing to grow in contributors, committers and community! On 01/06/2014 09:30 AM, Thomas Mortagne wrote: Hi xwikiers, The committers discussed and voted to include Clemens Robbenhaar in the team which he agreed so a warm welcome to him ! He has been very active since he started working on XWiki, he already spend a lot of time answering questions on the mailing list and on IRC (more than me I think). On the technical aspect everything I saw from him was good and very clean and he is clearly no afraid to look at advanced stuff (he spent a long time last month trying to help Kaisen and Denis on migration stuff which I'm sure was not that critically related to his own work). Note that he is working on XWiki for EsPresto AG (don't forget to add it to http://main.xwiki.org/xwiki/bin/view/Main/Support). I'm sure he will be great addition to the team and it's always a nice bonus to see non XWiki SAS members so active ;) Welcome ! -- ||| | ||||| |||| ||| Patrick Masson General Manager, Director Secretary to the Board Open Source Initiative 855 El Camino Real, Ste 13A, #270 Palo Alto, CA 94301 United States Skype: massonpj sip: osi-mas...@ekiga.net Ph: (970) 4MASSON Em: mass...@opensource.org mailto:mas...@opensource.org Ws: www.opensource.org http://www.opensource.org ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] help how to inherit a class from another
If you add different objects from several classes to XWiki document, common problem is that for document representation sheet of first found class is used. Therefore for composite objects you need to add XWiki.DocumentSheetBinding object which points to sheet document, with content like this (not tested!): {{velocity}} #set($obj1=$doc.getObject('Space.Obj1Class')) #set($obj2=$doc.getObject('Space.Obj2Class')) ... #if($obj1) #set($class1=obj1.xWikiClass) #foreach($prop in $class1.properties) |$prop.prettyName|$doc.display($prop.getName($obj1)) #end #end ... #if($obj2) Look at http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module for more. Note that you can save all these objects in specific template. Valdis hi, Thanks for your answer. Currently I am using a set of classes to represent my data, for display part they just need to directly show the properties. If I use composit, for the common part I need to identify if it's common, and there will be some if-else in each of the subclasses. I just wandering if we can have some auto-load, so that I don't need to use if-else everywhere, and it will be easy to maintain, just like the inherited class. 2014/1/5 Valdis Vītoliņš valdis.vitol...@odo.lv If you mean these classes defined in class editor defined in .../xwiki/bin/view/XWiki/XWikiClasses AFAIK these doesn't support extension. So, you need to use composition instead. Add object with type of the common class, and for few other documents add another object with type of extended class. You will need to adjust class sheet object to display fields of other tyepe of objects also (look at http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet +Module ) Valdis hi, the Class I mean is XClass, which is used in Wiki pages. thanks, B.R./ZZH 2014/1/5 Zhihua Zheng zhihu...@gmail.com hi all, I have couple of classes they are similar, most of them are the same, but some small parts are different. So that I want to use a arch that there is a common class holds all the common properties, and the real classes are inherited from the common. But how to achieve that? thanks! ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users