Thank you.

Am Montag, 1. Juni 2015 17:59:29 UTC+2 schrieb Jens Alfke:
>
>
> On Jun 1, 2015, at 1:41 AM, Philipp Hecht <[email protected] <javascript:>> 
> wrote:
>
> Is it eventually planned to create the index over javascript? 
>
>
> Probably, although we haven’t done any feature planning yet for how to 
> bring FTS to other platforms/languages.
>
> or do you know a good solution how can i search full text offline 
> (plattforms IOS, Android) over the coachbase lite database? 
>
>
> You can implement it yourself, but it won’t be as fast, and it won’t 
> handle all the edge cases unless you do a lot of work.
> The basic idea is to have the map function split the text into an array of 
> words, then emit each word as a key. You need to:
>
>    - lowercase the words
>    - remove punctuation
>    - remove common noise words like (in English) “the”, “a”, “an”, etc. 
>    These are called “stop words” and you can find lists of them online.
>    - “stem” the words, which means removing variants like pluralization, 
>    verb conjugation, etc.
>
> Then when you query, break the query string into words in the same way, 
> and set the array as the query.keys property.
>
> I’ve done this myself (to implement FTS on top of ForestDB). Stemming is 
> the hardest part but you may be able to get away without it depending on 
> the vocabulary in the 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/c2fed609-287c-489f-94d8-12486ba69676%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to