Sorry for not being clear, I'm talking about pull replication. I understand I can do a purgeDocument on the mobile app to discard any unwanted old document, but what I want to do is to avoid the sync gateway process to download data older than, let's say 7 days. Is it possible to set a filter on sync gateway configuration to do this? If so, how?
El lunes, 20 de abril de 2015, 11:57:50 (UTC-5), Jens Alfke escribió: > > > On Apr 20, 2015, at 9:40 AM, Victor Fernandez <[email protected] > <javascript:>> wrote: > > Does anyone know the best way to filter documents in the syncronization > process between Couchbase Lite and Sync Gateway using the date as a > discriminative element? > For example, today is April 20. I want to syncronize all the documents > with dates April 17,18,19 and 20. > > > Are you talking about pull or push (or both?) The answers are different… > > I want to discard documents with previous dates. > > > You’ll need to find the documents, probably using a view query, and then > call -purgeDocument on each one. > > —Jens > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/427da045-aa9f-42dd-aaca-b81710685ade%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
