> On Jun 6, 2015, at 10:32 AM, Brendan Duddridge <[email protected]> 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/AF1E5DBB-1E2F-4339-ADE4-8F012D873FCE%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to