> On Oct 19, 2014, at 10:29 AM, Rahul Thathoo <[email protected]> wrote: > > I want to enable full text search on these potentially 100s of thousands of > documents. What would be the most optimal way to go about doing this.
Despite implementing the FTS support in CBL/iOS, I'm not an expert on the details of the actual indexing; that's done by the SQLite FTS4 extension. So I don't know exactly how much space it takes up. The SQLite docs <https://www.sqlite.org/fts3.html> might have more info. > Is there a way to store the documents in a zipped format and yet still be > able to query against the view? Hm. I was about to advise storing the text as an attachment to the document, in zipped form, then in the map block retrieving the attachment and unzipping it and emitting the text. But the problem with this is that there's currently no API to get the contents of document attachments from within a map block. :( You could store the zipped text in the document JSON itself, but then you'd have to base64-encode it, which would undo most of the compression. I just filed an issue <https://github.com/couchbase/couchbase-lite-ios/issues/498> on this so we don't forget about it. So right now I don't have a good solution — you'll have to put the text directly in the document. Unfortunately this will be about twice the size (on average) of compressed text. —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/105C97E1-4C13-410E-8CE9-6687132847AD%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
