Ok that's great. Does that also mean that the FTS index does not get synced 
sync it's just generated locally during any CRUD operations? Would seem to 
make sense that way to avoid unnecessary sync traffic.

On Saturday, June 6, 2015 at 2:37:18 PM UTC-6, Jens Alfke wrote:
>
>
> On Jun 6, 2015, at 10:32 AM, Brendan Duddridge <[email protected] 
> <javascript:>> wrote:
>
> If I delete or add a key within a document which is being indexed by the 
> FTS engine, how does that value for that key get removed from the FTS 
> table? And if I update a value in the document, how does it get updated in 
> the FTS engine? Are there triggers that get fired to keep the FTS engine in 
> sync?
>
>
> The same way that all view indexes get updated. Whenever you query a view, 
> it re-indexes any documents that have been modified (or created) since the 
> index was last updated. That involves removing any rows that were 
> previously emitted by that document, calling the map function on it, and 
> adding a row for every call to emit().
>
> The only difference with FTS is that the key you provide also gets added 
> to a special table that’s indexed by the SQLite FTS4 indexer.
>
> —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/6d0c0c46-b7cc-49a8-8ec4-3278582bebfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to