I have posted issue in GitHub

https://github.com/couchbase/couchbase-lite-ios/issues/620


El lunes, 9 de marzo de 2015, 15:15:13 (UTC-5), Frederic Yesid Peña Sánchez 
escribió:
>
> Thanks, i was already using ForestDB (the message of SQLite is misleading)
>
> Now, going back to FTS, i'm not using snippets, and disabled 
> FullTextRanking.
>
> But the results of the Query gives me wrong, (or may be i'm doing wrong)
>
> The same view works for SQLite backend:
>
> [vistaRutasContactosMedicosFTS setMapBlock:^(NSDictionary *doc, 
> CBLMapEmitBlock emit) {
>         if([doc[@"type"] isEqualToString:@"RuteroMedicos"] && 
> [doc[@"estado_contacto"] integerValue] != 4 && [doc[@"estado_contacto"] 
> integerValue] != 2){
>             
>             NSString *datoTexto = [NSString stringWithFormat:@"%@ %@ %@ %@ 
> %@ %@ %@", doc[@"codigo_contacto"], doc[@"nombres"], doc[@"apellidos"], 
> doc[@"nombre_especialidad"], doc[@"direccion_visita"], 
> doc[@"categoria_color"], doc[@"categoria_nombre"]];
>             
>             // Tokenizar y generar keys
>             
>             CLSNSLog(@"CTK: %@", CBLTextKey(datoTexto));
>             
>             emit(CBLTextKey(datoTexto), @([doc[@"ruta_visita"] 
> integerValue]));
>         }
>     } version:@"1.8"];
>
> But when in use by ForestDB, it returns :
>
> 1 => "1509-2 VENNESE  TURRES  FEDERICO LLERAS 0 #999999 Sin categoria"
>
> for key => value respectively.
>
> Any lights on how to correctly use FTS on ForestDB (the minimum it haves)
>
> Thanks
>
> El lunes, 9 de marzo de 2015, 13:53:30 (UTC-5), Jens Alfke escribió:
>>
>>
>> On Mar 9, 2015, at 11:25 AM, Frederic Yesid Peña Sánchez <
>> freder...@gmail.com> wrote:
>>
>> Couchbase Lite using SQLite version 3.7.13 (2012-07-17 17:46:21 
>> 65035912264e3acbced5a3e16793327f0a2f17bb)
>> Should it say "ForestDB" instead??
>>
>>
>> Hm, that message comes from initialization of the SQLite storage class. I 
>> agree it’s confusing. It should probably instead appear the first time the 
>> class is instantiated.
>>
>> The best way to see what storage type is being used for which database is 
>> to enable logs for the `CBLDatabase` key (-LogCBLDatabase YES).
>>
>> Property "storageType" not found in object type ‘CBLManager'
>>
>>
>> Oops; looks like that hasn’t been made public yet. But using args 
>> "-CBLStorageType 
>> ForestDB” should work for now.
>>
>> —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 mobile-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/5ad236ce-ab56-48bb-952a-2906a7483a66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to