Re: [xwiki-users] global text search and replace
Thanks! What a great way to be exposed to a users group for the first time. Much appreciated! On Fri, Jan 6, 2012 at 5:53 PM, Vincent Massol wrote: > > On Jan 6, 2012, at 10:52 AM, Jinyan Su wrote: > > > Thanks. > > > > Is there a pointer to using XWQL to limit the query? (I've only started > > using xwiki.) > > > > Definitely don't want it trolling through all spaces in the wiki. > > http://platform.xwiki.org/xwiki/bin/view/DevGuide/QueryGuide > > -Vincent > > > --Xiao Su > > > > On Fri, Jan 6, 2012 at 5:43 PM, Vincent Massol > wrote: > > > >> > >> On Jan 6, 2012, at 10:39 AM, Guillaume Lerouge wrote: > >> > >>> Hi, > >>> > >>> one note: be careful when using something like this on your whole wiki. > >> It > >>> can have unexpected side effects (like replacing parts of words in > place > >>> you didn't expect) and you'll have no quick way to rollback (you'll > have > >> to > >>> do it manually, page by page). > >> > >> Good point, I've added the warning to the snippet page. > >> > >> @Jinyan: You can tune the XWQL query to limit it to a given space or > >> documents by adding for ex: > >> > >> "… and doc.space == 'yourspace' … " > >> "… and doc.name == 'name of the doc'… " > >> > >> -Vincent > >> > >>> Guillaume > >>> > >>> On Fri, Jan 6, 2012 at 10:36 AM, Jinyan Su > wrote: > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- blah, blah, blah... the right of the people peaceably to assemble, and to petition the Government for a redress of grievances... blah, blah, blah ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] global text search and replace
On Jan 6, 2012, at 10:52 AM, Jinyan Su wrote: > Thanks. > > Is there a pointer to using XWQL to limit the query? (I've only started > using xwiki.) > > Definitely don't want it trolling through all spaces in the wiki. http://platform.xwiki.org/xwiki/bin/view/DevGuide/QueryGuide -Vincent > --Xiao Su > > On Fri, Jan 6, 2012 at 5:43 PM, Vincent Massol wrote: > >> >> On Jan 6, 2012, at 10:39 AM, Guillaume Lerouge wrote: >> >>> Hi, >>> >>> one note: be careful when using something like this on your whole wiki. >> It >>> can have unexpected side effects (like replacing parts of words in place >>> you didn't expect) and you'll have no quick way to rollback (you'll have >> to >>> do it manually, page by page). >> >> Good point, I've added the warning to the snippet page. >> >> @Jinyan: You can tune the XWQL query to limit it to a given space or >> documents by adding for ex: >> >> "… and doc.space == 'yourspace' … " >> "… and doc.name == 'name of the doc'… " >> >> -Vincent >> >>> Guillaume >>> >>> On Fri, Jan 6, 2012 at 10:36 AM, Jinyan Su wrote: ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] global text search and replace
Thanks. Is there a pointer to using XWQL to limit the query? (I've only started using xwiki.) Definitely don't want it trolling through all spaces in the wiki. --Xiao Su On Fri, Jan 6, 2012 at 5:43 PM, Vincent Massol wrote: > > On Jan 6, 2012, at 10:39 AM, Guillaume Lerouge wrote: > > > Hi, > > > > one note: be careful when using something like this on your whole wiki. > It > > can have unexpected side effects (like replacing parts of words in place > > you didn't expect) and you'll have no quick way to rollback (you'll have > to > > do it manually, page by page). > > Good point, I've added the warning to the snippet page. > > @Jinyan: You can tune the XWQL query to limit it to a given space or > documents by adding for ex: > > "… and doc.space == 'yourspace' … " > "… and doc.name == 'name of the doc'… " > > -Vincent > > > Guillaume > > > > On Fri, Jan 6, 2012 at 10:36 AM, Jinyan Su wrote: > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] global text search and replace
On Jan 6, 2012, at 10:39 AM, Guillaume Lerouge wrote: > Hi, > > one note: be careful when using something like this on your whole wiki. It > can have unexpected side effects (like replacing parts of words in place > you didn't expect) and you'll have no quick way to rollback (you'll have to > do it manually, page by page). Good point, I've added the warning to the snippet page. @Jinyan: You can tune the XWQL query to limit it to a given space or documents by adding for ex: "… and doc.space == 'yourspace' … " "… and doc.name == 'name of the doc'… " -Vincent > Guillaume > > On Fri, Jan 6, 2012 at 10:36 AM, Jinyan Su wrote: > >> Thanks. I'll give it a try. Saw your name all over the pages. You rock. >> >> Regards, >> >> --Robs >> >> >> On Fri, Jan 6, 2012 at 5:32 PM, Vincent Massol wrote: >> >>> Hi, >>> >>> On Jan 6, 2012, at 1:40 AM, Jinyan Su wrote: >>> Hi. I'd like to search through the body of all xwiki documents for a >>> specified string (say, "fu"), and replace it with another ("bar"). Been searching extensions and google and haven't come-up with any way >> to >>> do this. mediawiki does have an extension to enable this. Anything similar in >>> xwiki? >>> >>> I've just coded a quick one for you here: >>> >> http://extensions.xwiki.org/xwiki/bin/view/Extension/Replace+Word+Snippet >>> >>> Enjoy >>> -Vincent >>> Thanks, --Xiao Su blah, blah, blah... the right of the people peaceably to assemble, and >> to petition the Government for a redress of grievances... blah, blah, blah >>> >>> ___ >>> users mailing list >>> users@xwiki.org >>> http://lists.xwiki.org/mailman/listinfo/users >>> >> >> >> >> -- >> blah, blah, blah... the right of the people peaceably to assemble, and to >> petition the Government for a redress of grievances... blah, blah, blah >> ___ >> 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] global text search and replace
Hi, one note: be careful when using something like this on your whole wiki. It can have unexpected side effects (like replacing parts of words in place you didn't expect) and you'll have no quick way to rollback (you'll have to do it manually, page by page). Guillaume On Fri, Jan 6, 2012 at 10:36 AM, Jinyan Su wrote: > Thanks. I'll give it a try. Saw your name all over the pages. You rock. > > Regards, > > --Robs > > > On Fri, Jan 6, 2012 at 5:32 PM, Vincent Massol wrote: > > > Hi, > > > > On Jan 6, 2012, at 1:40 AM, Jinyan Su wrote: > > > > > Hi. > > > > > > I'd like to search through the body of all xwiki documents for a > > specified > > > string (say, "fu"), and replace it with another ("bar"). > > > > > > Been searching extensions and google and haven't come-up with any way > to > > do > > > this. > > > > > > mediawiki does have an extension to enable this. Anything similar in > > xwiki? > > > > I've just coded a quick one for you here: > > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Replace+Word+Snippet > > > > Enjoy > > -Vincent > > > > > Thanks, > > > > > > --Xiao Su > > > blah, blah, blah... the right of the people peaceably to assemble, and > to > > > petition the Government for a redress of grievances... blah, blah, blah > > > > ___ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > > > > > -- > blah, blah, blah... the right of the people peaceably to assemble, and to > petition the Government for a redress of grievances... blah, blah, blah > ___ > 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] global text search and replace
Thanks. I'll give it a try. Saw your name all over the pages. You rock. Regards, --Robs On Fri, Jan 6, 2012 at 5:32 PM, Vincent Massol wrote: > Hi, > > On Jan 6, 2012, at 1:40 AM, Jinyan Su wrote: > > > Hi. > > > > I'd like to search through the body of all xwiki documents for a > specified > > string (say, "fu"), and replace it with another ("bar"). > > > > Been searching extensions and google and haven't come-up with any way to > do > > this. > > > > mediawiki does have an extension to enable this. Anything similar in > xwiki? > > I've just coded a quick one for you here: > http://extensions.xwiki.org/xwiki/bin/view/Extension/Replace+Word+Snippet > > Enjoy > -Vincent > > > Thanks, > > > > --Xiao Su > > blah, blah, blah... the right of the people peaceably to assemble, and to > > petition the Government for a redress of grievances... blah, blah, blah > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- blah, blah, blah... the right of the people peaceably to assemble, and to petition the Government for a redress of grievances... blah, blah, blah ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] global text search and replace
Hi, On Jan 6, 2012, at 1:40 AM, Jinyan Su wrote: > Hi. > > I'd like to search through the body of all xwiki documents for a specified > string (say, "fu"), and replace it with another ("bar"). > > Been searching extensions and google and haven't come-up with any way to do > this. > > mediawiki does have an extension to enable this. Anything similar in xwiki? I've just coded a quick one for you here: http://extensions.xwiki.org/xwiki/bin/view/Extension/Replace+Word+Snippet Enjoy -Vincent > Thanks, > > --Xiao Su > blah, blah, blah... the right of the people peaceably to assemble, and to > petition the Government for a redress of grievances... blah, blah, blah ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users