On Sunday, June 8, 2014 4:59:21 PM UTC-7, CouchbaseLover wrote:
>
> Thanks for the clarification.
>
> Should we skip searching with attachment cause it seems like a hassle, and 
> maybe wait for a feature that covers this from you guys? 
>

If I wanted to do full text search on attachments in the cloud I would 
create a channel of documents to index, and write a little node.js script 
to index the documents it emits 
<https://github.com/couchbase/sync_gateway/wiki/Changes-Worker-Pattern>. I 
guess my script would load the document and then put it in a full text 
indexer.

There's also an Elastic Search plugin for Couchbase Server 
<http://docs.couchbase.com/couchbase-elastic-search/> that might be able to 
handle the attachments, though I'm not sure what APIs it has for binary 
documents.

Chris
 

>
> Regards CouchbaseLover
>
>
>
> Den lördagen den 7:e juni 2014 kl. 00:22:19 UTC+2 skrev Jens Alfke:
>>
>>
>> On Jun 4, 2014, at 12:14 AM, CouchbaseLover <[email protected]> wrote:
>>
>> 1. The attachment linked to a document is in another document within the 
>> database. (100%)
>> 2. The shadowing bucket does not receive the attachment documents but 
>> only the documents that has a link to the attachment documents. (50%)
>>
>>
>> Right.
>>
>> 3. You simply can't search and get attachments cause the attachment 
>> filesystem is not reachable within the Couchbase SDK even though we search 
>> in the non shadowing bucket(the bucket Couchbase Lite talks to) (10 %)
>>
>>
>> I don’t know what you mean by “attachment filesystem”. The gateway 
>> doesn’t store attachments in the filesystem; they’re just extra docs in the 
>> bucket. The document ID starts with “_sync:att:” and is followed by the 
>> SHA-1 digest of the attachment data. (Ordinarily you shouldn’t mess with 
>> the docs in the gateway’s private bucket, but I agree that this is one case 
>> where you have to, in order to access the attachments directly from 
>> Couchbase.)
>>
>> —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/bb63973b-1f98-48f0-959c-9596c1cc4d02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to