The best way is through the studio since it has tools to test your script. Notice that the documents button is actually a combo box click the down arrow choose patch then choose collection insert your script lets say you have a field name title than you write this.title = title.replace("foo", "bar")
(
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi ,Thanks for that. Actually title.replace("foo","bar") , replaces first instance of the occurrence only , it is not replaced with subsequent to remaining instance.Example : I have "foo " more than 50 time in a document , but when I use above syntax it replace first "foo" with "bar" , but remaining "foo" are not replaced.Do I need any additional syntax ? I tried with title.replaceall("foo","bar") , it didn't work.
On Friday, March 27, 2015 at 10:46:39 PM UTC+5:30, Tal Weiss wrote:The best way is through the studio since it has tools to test your script. Notice that the documents button is actually a combo box click the down arrow choose patch then choose collection insert your script lets say you have a field name title than you write this.title = title.replace("foo", "bar")
(On Mar 27, 2015 7:45 PM, <mcpdeve...@gmail.com> wrote:--
Hi ,I have tons of thousands in collection. I would like to replace a word with another word for all tons of document collection.Is possible to update those with patch collection ? If yes , how to do it ?
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hibernating Rhinos Ltd
Tal Weiss l Core Team Developer l Mobile:+972-54-802-4849
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
RavenDB paving the way to "Data Made Simple" http://ravendb.net/